Skip to content

Commit

Permalink
ENH(TST): test that we raise NotImplementedError if .nii does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Mar 29, 2020
1 parent cafd968 commit 4fd4391
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion heudiconv/tests/test_dicoms.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ def test_embed_dicom_and_nifti_metadata(tmpdir):
dcmfiles = [op.join(TESTS_DATA_PATH, 'axasc35.dcm')]
infofile = 'infofile.json'

out_prefix = str(tmpdir / "nifti")
# 1) nifti does not exist -- no longer supported
with pytest.raises(NotImplementedError):
embed_dicom_and_nifti_metadata(dcmfiles, out_prefix + '.nii.gz', infofile, None)

# we should produce nifti using our "standard" ways
out_prefix = str(tmpdir / "nifti")
nipype_out, prov_file = nipype_convert(
dcmfiles, prefix=out_prefix, with_prov=False,
bids_options=None, tmpdir=str(tmpdir))
Expand Down

0 comments on commit 4fd4391

Please sign in to comment.