Skip to content

Commit d74ceda

Browse files
committed
restore test
1 parent 40a2c20 commit d74ceda

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

weasel/tests/cli/test_cli_app.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212
runner = CliRunner()
1313

1414

15-
@pytest.mark.parametrize("cmd", ["--help"])
15+
@pytest.mark.parametrize("cmd", [None, "--help"])
1616
def test_show_help(cmd):
1717
"""Basic test to confirm help text appears"""
18-
# This test used to exercise the no-args help as well but
19-
# it no longer seems to work in typer-slim. Maybe I'm doing it wrong?
20-
result = runner.invoke(app, [cmd])
18+
if cmd:
19+
result = runner.invoke(app, [cmd])
20+
else:
21+
result = runner.invoke(app)
2122
for line in HELP.splitlines():
2223
assert line in result.stdout
2324

0 commit comments

Comments
 (0)