Skip to content

Commit b1a3e53

Browse files
committed
Fix test.
1 parent 5970b78 commit b1a3e53

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
@@ -10,7 +10,7 @@
1010

1111
def test_update_complex_name():
1212
"""Unit testing for heudiconv.convert.update_complex_name(), which updates
13-
filenames with the rec field if appropriate.
13+
filenames with the part field if appropriate.
1414
"""
1515
# Standard name update
1616
fn = 'sub-X_ses-Y_task-Z_run-01_sbref'
@@ -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_run-01_rec-3_sbref'
29+
out_fn_true = 'sub-X_ses-Y_task-Z_run-01_part-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_run-01_rec-mag_sbref'
34+
fn = 'sub-X_ses-Y_task-Z_run-01_part-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)