diff --git a/tests/test_command_line.py b/tests/test_command_line.py index 3f587c8..b9756ec 100644 --- a/tests/test_command_line.py +++ b/tests/test_command_line.py @@ -121,6 +121,7 @@ def test_element() -> None: def test_unwrapped_element() -> None: + """Test `element` command from inside the project.""" arguments: argparse.Namespace = parse_arguments( ["map_machine"] + COMMAND_LINES["element"] ) diff --git a/tests/test_completion.py b/tests/test_completion.py index 7a9f528..e5f612a 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -4,5 +4,4 @@ from map_machine.ui.completion import completion_commands def test_completion() -> None: """Test Fish shell completion generation.""" - commands: str = completion_commands() - assert commands.startswith("set -l") + assert completion_commands().startswith("set -l") diff --git a/tests/test_icons.py b/tests/test_icons.py index a17ffa6..796db47 100644 --- a/tests/test_icons.py +++ b/tests/test_icons.py @@ -54,8 +54,10 @@ def get_icon(tags: Tags) -> IconSet: def test_no_icons() -> None: """ - Tags that has no description in scheme and should be visualized with default - shape. + Test icon creation for tags not described in the scheme. + + Tags that has no description in the scheme and should be visualized with + default shape. """ icon: IconSet = get_icon({"aaa": "bbb"}) assert icon.main_icon.is_default() @@ -64,6 +66,8 @@ def test_no_icons() -> None: def test_no_icons_but_color() -> None: """ + Test icon creation for tags not described in the scheme and `colour` tag. + Tags that has no description in scheme, but have `colour` tag and should be visualized with default shape with the given color. """