We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a01b7d2 commit 5647a9dCopy full SHA for 5647a9d
1 file changed
tests/test_executable.py
@@ -16,6 +16,18 @@
16
17
from . import push_argv
18
19
+all_tools = pytest.mark.parametrize(
20
+ "tool",
21
+ [
22
+ "itkimage2segimage",
23
+ "segimage2itkimage",
24
+ "tid1500writer",
25
+ "tid1500reader",
26
+ "itkimage2paramap",
27
+ "paramap2itkimage",
28
+ ],
29
+)
30
+
31
all_tools_version = pytest.mark.parametrize(
32
"tool,expected_version",
33
[
@@ -58,8 +70,8 @@ def test_package_script(tool, expected_version):
58
70
assert output.splitlines()[2].split(" ")[1] == f"version: {expected_version}"
59
71
60
72
61
-@all_tools_version
62
-def test_module(tool, expected_version):
73
+@all_tools
74
+def test_module(tool):
63
75
func = getattr(dcmqi, tool)
64
76
args = [f"{tool}.py", "--version"]
65
77
with push_argv(args), pytest.raises(SystemExit) as excinfo:
0 commit comments