Skip to content

Commit

Permalink
fix: update code style in executable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LennyN95 committed Apr 24, 2024
1 parent a01b7d2 commit 5647a9d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tests/test_executable.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@

from . import push_argv

all_tools = pytest.mark.parametrize(
"tool",
[
"itkimage2segimage",
"segimage2itkimage",
"tid1500writer",
"tid1500reader",
"itkimage2paramap",
"paramap2itkimage",
],
)

all_tools_version = pytest.mark.parametrize(
"tool,expected_version",
[
Expand Down Expand Up @@ -58,8 +70,8 @@ def test_package_script(tool, expected_version):
assert output.splitlines()[2].split(" ")[1] == f"version: {expected_version}"


@all_tools_version
def test_module(tool, expected_version):
@all_tools
def test_module(tool):
func = getattr(dcmqi, tool)
args = [f"{tool}.py", "--version"]
with push_argv(args), pytest.raises(SystemExit) as excinfo:
Expand Down

0 comments on commit 5647a9d

Please sign in to comment.