Skip to content

Commit 9b8c363

Browse files
committed
enh: add coverage
1 parent b0599a6 commit 9b8c363

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nitransforms/tests/test_linear.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ def test_linear_filenotfound(data_path):
5353
with pytest.raises(FileNotFoundError):
5454
nitl.Affine.from_filename("doesnotexist.tfm", fmt="itk")
5555

56+
with pytest.raises(FileNotFoundError):
57+
nitl.LinearTransformsMapping.from_filename("doesnotexist.tfm", fmt="itk")
58+
59+
with pytest.raises(FileNotFoundError):
60+
nitl.LinearTransformsMapping.from_filename("doesnotexist.mat", fmt="fsl")
61+
5662

5763
def test_linear_valueerror():
5864
"""Exercise errors in Affine creation."""

0 commit comments

Comments
 (0)