Skip to content

Commit

Permalink
fix cli tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed May 1, 2024
1 parent c36bcae commit 7ed127e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bbot/test/test_step_1/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,15 @@ def test_cli_config_validation(monkeypatch, caplog):
assert not caplog.text
monkeypatch.setattr("sys.argv", ["bbot", "-c", "modules.ipnegibhor.num_bits=4"])
cli.main()
assert 'Could not find module option "modules.ipnegibhor.num_bits"' in caplog.text
assert 'Could not find config option "modules.ipnegibhor.num_bits"' in caplog.text
assert 'Did you mean "modules.ipneighbor.num_bits"?' in caplog.text

# incorrect global option
caplog.clear()
assert not caplog.text
monkeypatch.setattr("sys.argv", ["bbot", "-c", "web_spier_distance=4"])
cli.main()
assert 'Could not find module option "web_spier_distance"' in caplog.text
assert 'Could not find config option "web_spier_distance"' in caplog.text
assert 'Did you mean "web_spider_distance"?' in caplog.text


Expand Down

0 comments on commit 7ed127e

Please sign in to comment.