Add documentation.

This commit is contained in:
Sergey Vartanov 2021-08-18 09:19:26 +03:00
parent 3bcf026862
commit b20006f6ae
7 changed files with 40 additions and 37 deletions

View file

@ -9,16 +9,16 @@ __email__ = "me@enzet.ru"
def test_style_empty() -> None:
"""Test constructing style of empty tags."""
assert SCHEME.get_style({}, 18) == []
assert SCHEME.get_style({}) == []
def test_style_unknown() -> None:
"""Test constructing style of unknown tags."""
assert SCHEME.get_style({"aaa": "bbb"}, 18) == []
assert SCHEME.get_style({"aaa": "bbb"}) == []
def test_style_area() -> None:
"""Test constructing style of landuse=grass."""
style = SCHEME.get_style({"landuse": "grass"}, 18)
style = SCHEME.get_style({"landuse": "grass"})
assert len(style) == 1
assert style[0].style == {"fill": "#CFE0A8", "stroke": "#BFD098"}