Skip to content

Commit

Permalink
chore(test): put ids on some hard-to-trigger tests (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau authored Sep 9, 2024
1 parent 244b52c commit 2bda257
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions tests/integration/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,16 @@ def app(create_app):
@pytest.mark.parametrize(
("argv", "stdout", "stderr", "exit_code"),
[
(["help"], "", BASIC_USAGE, 0),
(["--help"], "", BASIC_USAGE, 0),
(["-h"], "", BASIC_USAGE, 0),
(["--version"], VERSION_INFO, "", 0),
(["-V"], VERSION_INFO, "", 0),
(["-q", "--version"], "", "", 0),
(["--invalid-parameter"], "", BASIC_USAGE, 64),
(["non-command"], "", INVALID_COMMAND, 64),
pytest.param(["help"], "", BASIC_USAGE, 0, id="help"),
pytest.param(["--help"], "", BASIC_USAGE, 0, id="--help"),
pytest.param(["-h"], "", BASIC_USAGE, 0, id="-h"),
pytest.param(["--version"], VERSION_INFO, "", 0, id="--version"),
pytest.param(["-V"], VERSION_INFO, "", 0, id="-V"),
pytest.param(["-q", "--version"], "", "", 0, id="-q--version"),
pytest.param(
["--invalid-parameter"], "", BASIC_USAGE, 64, id="--invalid-parameter"
),
pytest.param(["non-command"], "", INVALID_COMMAND, 64, id="non-command"),
],
)
def test_special_inputs(capsys, monkeypatch, app, argv, stdout, stderr, exit_code):
Expand Down

0 comments on commit 2bda257

Please sign in to comment.