Fix tests code style.

This commit is contained in:
Sergey Vartanov 2022-07-25 23:54:30 +03:00
parent 1bb3ca5a37
commit 8d252fe998
3 changed files with 8 additions and 4 deletions

View file

@ -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"]
)

View file

@ -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")

View file

@ -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.
"""