File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -592,9 +592,9 @@ def test_bids_grabber(tmpdir):
592592 bg .inputs .base_dir = os .path .join (datadir , 'ds005' )
593593 bg .inputs .subject = '01'
594594 results = bg .run ()
595- assert os .path .basename ( results .outputs .anat [ 0 ]) == 'sub-01_T1w.nii.gz'
596- assert os . path . basename ( results . outputs . func [ 0 ]) == (
597- 'sub-01_task-mixedgamblestask_run-01_bold.nii.gz' )
595+ assert 'sub-01_T1w.nii.gz' in map ( os .path .basename , results .outputs .anat )
596+ assert 'sub-01_task-mixedgamblestask_run-01_bold.nii.gz' in \
597+ map ( os . path . basename , results . outputs . func )
598598
599599
600600@pytest .mark .skipif (not have_pybids ,
@@ -610,7 +610,7 @@ def test_bids_fields(tmpdir):
610610 bg .inputs .subject = '01'
611611 bg .inputs .output_query ['dwi' ] = dict (modality = 'dwi' )
612612 results = bg .run ()
613- assert os .path .basename ( results .outputs .dwi [ 0 ]) == 'sub-01_dwi.nii.gz'
613+ assert 'sub-01_dwi.nii.gz' in map ( os .path .basename , results .outputs .dwi )
614614
615615
616616@pytest .mark .skipif (not have_pybids ,
You can’t perform that action at this time.
0 commit comments