Skip to content

Commit 4fd4391

Browse files
committed
ENH(TST): test that we raise NotImplementedError if .nii does not exist
1 parent cafd968 commit 4fd4391

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

heudiconv/tests/test_dicoms.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ def test_embed_dicom_and_nifti_metadata(tmpdir):
3838
dcmfiles = [op.join(TESTS_DATA_PATH, 'axasc35.dcm')]
3939
infofile = 'infofile.json'
4040

41+
out_prefix = str(tmpdir / "nifti")
4142
# 1) nifti does not exist -- no longer supported
43+
with pytest.raises(NotImplementedError):
44+
embed_dicom_and_nifti_metadata(dcmfiles, out_prefix + '.nii.gz', infofile, None)
45+
4246
# we should produce nifti using our "standard" ways
43-
out_prefix = str(tmpdir / "nifti")
4447
nipype_out, prov_file = nipype_convert(
4548
dcmfiles, prefix=out_prefix, with_prov=False,
4649
bids_options=None, tmpdir=str(tmpdir))

0 commit comments

Comments
 (0)