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):
592
592
bg .inputs .base_dir = os .path .join (datadir , 'ds005' )
593
593
bg .inputs .subject = '01'
594
594
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 )
598
598
599
599
600
600
@pytest .mark .skipif (not have_pybids ,
@@ -610,7 +610,7 @@ def test_bids_fields(tmpdir):
610
610
bg .inputs .subject = '01'
611
611
bg .inputs .output_query ['dwi' ] = dict (modality = 'dwi' )
612
612
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 )
614
614
615
615
616
616
@pytest .mark .skipif (not have_pybids ,
You can’t perform that action at this time.
0 commit comments