Skip to content

Commit

Permalink
Look farther back for dryrun message
Browse files Browse the repository at this point in the history
  • Loading branch information
WardLT committed Nov 21, 2023
1 parent 575a838 commit 49a9e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_version(capsys):
def test_dryrun(caplog, capsys):
with caplog.at_level(logging.INFO):
main(['run', '--dry-run', f'{_spec_dir / "spec.py"}:spec'])
assert any('dry run' in m for m in caplog.messages[-3:])
assert any('dry run' in m for m in caplog.messages[-6:])


@mark.skipif(on_mac, reason='Only test the CLI on Linux')
Expand Down

0 comments on commit 49a9e33

Please sign in to comment.