Skip to content

Commit a61b1e1

Browse files
Евгений БлиновЕвгений Блинов
authored andcommitted
Add test to ensure --help does not run benchmark
1 parent 46a0d46 commit a61b1e1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/cli/test_scenario_cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ def test_help_mentions_max_mean(self) -> None:
122122
combined = proc.stdout + proc.stderr
123123
assert 'max-mean' in combined.lower() or 'max_mean' in combined.lower()
124124

125+
def test_help_does_not_run_benchmark(self) -> None:
126+
proc = run_script(scenario_script(), '--help')
127+
assert 'benchmark:' not in proc.stdout
128+
125129

126130
class TestScenarioCliEdgeCases:
127131
def test_number_zero_fails(self) -> None:

0 commit comments

Comments
 (0)