Skip to content

Commit 6b08b02

Browse files
committed
added base for two regression tests
1 parent a9c039e commit 6b08b02

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

nipype/algorithms/tests/test_mesh_ops.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,31 @@ def test_trans_distances():
7575

7676
os.chdir(curdir)
7777
rmtree(tempdir)
78+
79+
80+
def test_warppoints():
81+
tempdir = mkdtemp()
82+
curdir = os.getcwd()
83+
os.chdir(tempdir)
84+
85+
if m.no_tvtk():
86+
yield assert_raises, ImportError, m.WarpPoints
87+
88+
# TODO: include regression tests for when tvtk is installed
89+
90+
os.chdir(curdir)
91+
rmtree(tempdir)
92+
93+
94+
def test_meshwarpmaths():
95+
tempdir = mkdtemp()
96+
curdir = os.getcwd()
97+
os.chdir(tempdir)
98+
99+
if m.no_tvtk():
100+
yield assert_raises, ImportError, m.MeshWarpMaths
101+
102+
# TODO: include regression tests for when tvtk is installed
103+
104+
os.chdir(curdir)
105+
rmtree(tempdir)

0 commit comments

Comments
 (0)