mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-29 17:06:30 +02:00
Add area style test.
This commit is contained in:
parent
4291bb9193
commit
6aef415579
1 changed files with 9 additions and 0 deletions
|
@ -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"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue