Skip to content

Commit 44151c0

Browse files
committed
enh: cover one more line of code [skip ci]
1 parent 13c10f9 commit 44151c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sdcflows/tests/test_fieldmaps.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,7 @@ def test_FieldmapEstimationIdentifier(monkeypatch, testdata_dir):
199199
m.setattr(fm, "_intents", {"file1.nii.gz": {"fmap_0", "fmap_1"}})
200200
assert fm.get_identifier("file1.nii.gz") == ("fmap_0", "fmap_1",)
201201

202+
with pytest.raises(KeyError):
203+
fm.get_identifier("file", by="invalid")
204+
202205
fm.clear_registry()

0 commit comments

Comments
 (0)