Skip to content

Commit 5970b78

Browse files
committed
Update test.
1 parent de4808b commit 5970b78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

heudiconv/tests/test_convert.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_update_complex_name():
1616
fn = 'sub-X_ses-Y_task-Z_run-01_sbref'
1717
metadata = {'ImageType': ['ORIGINAL', 'PRIMARY', 'P', 'MB', 'TE3', 'ND', 'MOSAIC']}
1818
suffix = 3
19-
out_fn_true = 'sub-X_ses-Y_task-Z_rec-phase_run-01_sbref'
19+
out_fn_true = 'sub-X_ses-Y_task-Z_run-01_part-phase_sbref'
2020
out_fn_test = update_complex_name(metadata, fn, suffix)
2121
assert out_fn_test == out_fn_true
2222
# Catch an unsupported type and *do not* update
@@ -26,12 +26,12 @@ def test_update_complex_name():
2626
# Data type is missing from metadata so use suffix
2727
fn = 'sub-X_ses-Y_task-Z_run-01_sbref'
2828
metadata = {'ImageType': ['ORIGINAL', 'PRIMARY', 'MB', 'TE3', 'ND', 'MOSAIC']}
29-
out_fn_true = 'sub-X_ses-Y_task-Z_rec-3_run-01_sbref'
29+
out_fn_true = 'sub-X_ses-Y_task-Z_run-01_rec-3_sbref'
3030
out_fn_test = update_complex_name(metadata, fn, suffix)
3131
assert out_fn_test == out_fn_true
3232
# Catch existing field with value that *does not match* metadata
3333
# and raise Exception
34-
fn = 'sub-X_ses-Y_task-Z_rec-magnitude_run-01_sbref'
34+
fn = 'sub-X_ses-Y_task-Z_run-01_rec-mag_sbref'
3535
metadata = {'ImageType': ['ORIGINAL', 'PRIMARY', 'P', 'MB', 'TE3', 'ND', 'MOSAIC']}
3636
suffix = 3
3737
with pytest.raises(BIDSError):

0 commit comments

Comments
 (0)