Skip to content

Commit ac010a1

Browse files
committed
Apply Black formatting to CLI test helpers.
Fix import order in conftest after adding strip_ansi so pylint stays clean.
1 parent f3a4c77 commit ac010a1

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

tests/api/unit_tests/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@
77

88
import re
99
from unittest.mock import Mock
10+
1011
import pytest
12+
from moldflow.constants import COLOR_BAND_RANGE
13+
from tests.api.unit_tests.mock_container import MockContainer
1114

1215
_ANSI_ESCAPE = re.compile(r"\x1b\[[0-?]*[ -/]*[@-~]")
1316

1417

1518
def strip_ansi(text: str) -> str:
1619
"""Remove ANSI escape sequences from CLI output."""
1720
return _ANSI_ESCAPE.sub("", text)
18-
from moldflow.constants import COLOR_BAND_RANGE
19-
from tests.api.unit_tests.mock_container import MockContainer
21+
2022

2123
VALID_COLOR_BAND_VALUES = COLOR_BAND_RANGE
2224

tests/api/unit_tests/test_cli_basics.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ def test_subcommand_help_runs_without_synergy(self):
6464
list_output = strip_ansi(list_help.stdout)
6565
describe_output = strip_ansi(describe_help.stdout)
6666
invoke_output = strip_ansi(invoke_help.stdout)
67-
assert (
68-
"Discover invokable targets and the next command to run for each one"
69-
in list_output
70-
)
67+
assert "Discover invokable targets and the next command to run for each one" in list_output
7168
assert "--json" in list_output
7269
assert "--with-describe" in list_output
7370
assert (

0 commit comments

Comments
 (0)