We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efeabef commit 054d677Copy full SHA for 054d677
tests/test_app.py
@@ -86,13 +86,8 @@ def test_exec_before():
86
87
def test_cli_version(runner):
88
args = ["--version"]
89
-
90
- result = runner.invoke(mario.cli.cli, args)
91
92
- assert result.output == f"mario, version {mario.__version__}\n"
93
- assert result.output.rstrip()[-1].isdigit()
94
- assert not result.exception
95
- assert result.exit_code == 0
+ result = helpers.run(args).decode()
+ assert result == f"mario, version {mario.__version__}\n"
96
97
98
def test_config_file(tmp_path):
0 commit comments