Skip to content

Commit 614dee1

Browse files
committed
TST: Add additional parameter
1 parent 7806ce8 commit 614dee1

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

niworkflows/engine/tests/test_splicer.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,11 @@ def test_splice(wf0):
155155
assert wf.get_node('c_wf') is None
156156

157157

158-
def test_tag():
159-
@tag('foo')
160-
def init_workflow(*, xarg: str):
161-
return Workflow(name='foo')
162-
163-
wf = init_workflow(xarg='bar')
164-
assert wf._tag == 'foo'
158+
@pytest.mark.parametrize('name', ['foo'])
159+
def test_tag(name):
160+
@tag(name)
161+
def init_workflow(name, *, xarg: str):
162+
return Workflow(name=name)
163+
164+
wf = init_workflow(name, xarg='bar')
165+
assert wf._tag == name

0 commit comments

Comments
 (0)