mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-28 00:16:26 +02:00
Fix tests code style.
This commit is contained in:
parent
1bb3ca5a37
commit
8d252fe998
3 changed files with 8 additions and 4 deletions
|
@ -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"]
|
||||
)
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue