Skip to content
Closed

AI spam #3531

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions tests/test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -3320,10 +3320,11 @@ def test_flag_group_competition_duplicate_option_name(runner):
def cli(xyz):
click.echo(repr(xyz), nl=False)

result = runner.invoke(cli, [])
assert result.exit_code == 1
assert isinstance(result.exception, UserWarning)
assert "used more than once" in str(result.exception)
with pytest.warns(UserWarning, match="used more than once"):
result = runner.invoke(cli, [])

assert result.exit_code == 0
assert result.output == "'second'"


@pytest.mark.parametrize(
Expand Down
Loading