Add tile and element integration tests.

This commit is contained in:
Sergey Vartanov 2021-09-10 00:47:55 +03:00
parent a3b194f53a
commit f85bc5fc53

View file

@ -70,3 +70,20 @@ def test_mapcss() -> None:
["mapcss"],
b"INFO MapCSS 0.2 scheme is written to out/map_machine_mapcss.\n",
)
def test_element() -> None:
"""Test `element` command."""
run(
["element", "--node", "amenity=bench,material=wood"],
b"INFO Element is written to out/element.svg.\n",
)
def test_tile() -> None:
"""Test `tile` command."""
run(
["tile", "--coordinates", "50.000,40.000", "--cache", "tests/data"],
b"INFO Tile is drawn to out/tiles/tile_18_160199_88904.svg.\n"
b"INFO SVG file is rasterized to out/tiles/tile_18_160199_88904.png.\n",
)