Skip to content

Commit 61ebb29

Browse files
committed
add tests
1 parent a854869 commit 61ebb29

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

nipype/interfaces/dipy/tests/test_base.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
from collections import namedtuple
33
from ...base import traits, TraitedSpec, BaseInterfaceInputSpec
44
from ..base import (convert_to_traits_type, create_interface_specs,
5-
dipy_to_nipype_interface, DipyBaseInterface, no_dipy)
5+
dipy_to_nipype_interface, DipyBaseInterface, no_dipy,
6+
get_dipy_workflows)
67

78

89
def test_convert_to_traits_type():
@@ -136,6 +137,16 @@ def run(self, in_files, param1=1, out_dir='', out_ref='out1.txt'):
136137
new_specs().run()
137138

138139

140+
@pytest.mark.skipif(no_dipy(), reason="DIPY is not installed")
141+
def test_get_dipy_workflows():
142+
from dipy.workflows import align
143+
144+
l_wkflw = get_dipy_workflows(align)
145+
for name, obj in l_wkflw:
146+
assert name.endswith('Flow')
147+
assert issubclass(align.Workflow)
148+
149+
139150
if __name__ == "__main__":
140151
test_convert_to_traits_type()
141152
test_create_interface_specs()

0 commit comments

Comments
 (0)