Skip to content

Commit

Permalink
change test assertion to bypass python argparse bug (#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
clavedeluna authored Oct 10, 2024
1 parent fd4475b commit c0c3563
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,9 @@ def test_bad_option(self, caplog):
self.registry,
)
assert err.value.args[0] == 3
assert (
"CLI error: ambiguous option: --codemod=url-sandbox could match --codemod-exclude, --codemod-include"
in caplog.messages
)
msg = caplog.messages[0]
assert "CLI error: ambiguous option: " in msg
assert " could match --codemod-exclude, --codemod-include" in msg

@pytest.mark.parametrize("codemod", ["secure-random", "pixee:python/secure-random"])
def test_codemod_name_or_id(self, codemod):
Expand Down

0 comments on commit c0c3563

Please sign in to comment.