Add area style test.

This commit is contained in:
Sergey Vartanov 2021-05-25 02:44:31 +03:00
parent 4291bb9193
commit 6aef415579

View file

@ -19,3 +19,12 @@ def test_style_unknown() -> None:
Test constructing style of unknown tags.
"""
assert SCHEME.get_style({"aaa": "bbb"}, 18) == []
def test_style_area() -> None:
"""
Test constructing style of landuse=grass.
"""
style = SCHEME.get_style({"landuse": "grass"}, 18)
assert len(style) == 1
assert style[0].style == {"fill": "#CFE0A8", "stroke": "#BFD098"}