Skip to content

Commit 054d677

Browse files
akbakb
authored andcommitted
Fix version test
1 parent efeabef commit 054d677

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/test_app.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,8 @@ def test_exec_before():
8686

8787
def test_cli_version(runner):
8888
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
89+
result = helpers.run(args).decode()
90+
assert result == f"mario, version {mario.__version__}\n"
9691

9792

9893
def test_config_file(tmp_path):

0 commit comments

Comments
 (0)