Skip to content

Commit 5647a9d

Browse files
committed
fix: update code style in executable tests
1 parent a01b7d2 commit 5647a9d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

tests/test_executable.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@
1616

1717
from . import push_argv
1818

19+
all_tools = pytest.mark.parametrize(
20+
"tool",
21+
[
22+
"itkimage2segimage",
23+
"segimage2itkimage",
24+
"tid1500writer",
25+
"tid1500reader",
26+
"itkimage2paramap",
27+
"paramap2itkimage",
28+
],
29+
)
30+
1931
all_tools_version = pytest.mark.parametrize(
2032
"tool,expected_version",
2133
[
@@ -58,8 +70,8 @@ def test_package_script(tool, expected_version):
5870
assert output.splitlines()[2].split(" ")[1] == f"version: {expected_version}"
5971

6072

61-
@all_tools_version
62-
def test_module(tool, expected_version):
73+
@all_tools
74+
def test_module(tool):
6375
func = getattr(dcmqi, tool)
6476
args = [f"{tool}.py", "--version"]
6577
with push_argv(args), pytest.raises(SystemExit) as excinfo:

0 commit comments

Comments
 (0)