From a3b194f53ae90a8ce2ea0ca73b82787fadb35c40 Mon Sep 17 00:00:00 2001 From: Sergey Vartanov Date: Fri, 10 Sep 2021 00:47:25 +0300 Subject: [PATCH] Add icons and MapCSS integration tests. --- tests/test_command_line.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/test_command_line.py b/tests/test_command_line.py index 418cc98..dc48738 100644 --- a/tests/test_command_line.py +++ b/tests/test_command_line.py @@ -53,3 +53,20 @@ def test_render() -> None: assert len(root) == 4 assert root.get("width") == "186.0" assert root.get("height") == "198.0" + + +def test_icons() -> None: + """Test `icons` command.""" + run( + ["icons"], + b"INFO Icon grid is written to out/icon_grid.svg.\n" + b"INFO Icons are written to out/icons_by_name and out/icons_by_id.\n", + ) + + +def test_mapcss() -> None: + """Test `mapcss` command.""" + run( + ["mapcss"], + b"INFO MapCSS 0.2 scheme is written to out/map_machine_mapcss.\n", + )