File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88import re
99from unittest .mock import Mock
10+
1011import 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
1518def 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
2123VALID_COLOR_BAND_VALUES = COLOR_BAND_RANGE
2224
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments