We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d634070 commit 4d379b5Copy full SHA for 4d379b5
tests/cli_test.py
@@ -1,25 +1,23 @@
1
from __future__ import annotations
2
3
+import contextlib
4
+
5
import pytest
6
7
from bmipy._cmd import main
8
9
10
def test_cli_version(capsys):
- try:
11
+ with contextlib.suppress(SystemExit):
12
assert main(["--version"]) == 0
- except SystemExit:
- pass
13
output = capsys.readouterr().out
14
15
assert "bmipy" in output
16
17
18
def test_cli_help(capsys):
19
20
assert main(["--help"]) == 0
21
22
23
24
25
assert "help" in output
0 commit comments