Skip to content

Commit 03f417b

Browse files
committed
TST: Add test for tag
1 parent 7f8536f commit 03f417b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

niworkflows/engine/tests/test_splicer.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from nipype.interfaces.base import BaseInterfaceInputSpec, SimpleInterface, TraitedSpec, traits
66
from nipype.interfaces.utility import IdentityInterface
77

8-
from ..splicer import splice_workflow
8+
from ..splicer import splice_workflow, tag
99

1010

1111
class _NullInterfaceInputSpec(BaseInterfaceInputSpec):
@@ -153,3 +153,11 @@ def test_splice(wf0):
153153
assert wf.get_node('a2_wf')
154154
assert wf.get_node('b_wf').get_node('nested2_wf')
155155
assert wf.get_node('c_wf') is None
156+
157+
158+
def test_tag():
159+
@tag('foo')
160+
def init_workflow():
161+
return Workflow(name='foo')
162+
163+
assert init_workflow()._tag == 'foo'

0 commit comments

Comments
 (0)