Skip to content

Commit a5b9752

Browse files
committed
enh: add test completing coverage of two partials
1 parent 3ae7562 commit a5b9752

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nitransforms/tests/test_io.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,14 @@ def test_Linear_common(tmpdir, data_path, sw, image_orientation, get_testdata):
222222
xfm = factory.from_ras(RAS, reference=reference, moving=moving)
223223
assert np.allclose(xfm.to_ras(reference=reference, moving=moving), RAS)
224224

225+
# Test without images
226+
if sw == "fsl":
227+
with pytest.raises(ValueError):
228+
factory.from_ras(RAS)
229+
else:
230+
xfm = factory.from_ras(RAS)
231+
assert np.allclose(xfm.to_ras(), RAS)
232+
225233

226234
@pytest.mark.parametrize(
227235
"image_orientation",

0 commit comments

Comments
 (0)