Skip to content

Commit 9288256

Browse files
STY: Apply ruff/flake8-pytest-style rule PT007
PT007 Wrong values type in `@pytest.mark.parametrize` expected `list` of `tuple`
1 parent 592b1dd commit 9288256

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nipype/tests/test_nipype.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def test_no_et_bare(tmp_path):
7070
assert next(iter(res.nodes)).result.outputs.out == et
7171

7272

73-
@pytest.mark.parametrize("plugin", ("MultiProc", "LegacyMultiProc"))
74-
@pytest.mark.parametrize("run_without_submitting", (True, False))
73+
@pytest.mark.parametrize("plugin", ["MultiProc", "LegacyMultiProc"])
74+
@pytest.mark.parametrize("run_without_submitting", [True, False])
7575
def test_no_et_multiproc(tmp_path, plugin, run_without_submitting):
7676
from unittest.mock import patch
7777
from nipype.pipeline import engine as pe

nipype/utils/tests/test_imagemanip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from ..imagemanip import copy_header
77

88

9-
@pytest.mark.parametrize("keep_dtype", (True, False))
9+
@pytest.mark.parametrize("keep_dtype", [True, False])
1010
def test_copy_header(tmp_path, keep_dtype):
1111
"""Cover copy_header."""
1212
fname1 = tmp_path / "reference.nii.gz"

0 commit comments

Comments
 (0)