Skip to content

Commit 6782a65

Browse files
committed
FIX: update parametrize data
1 parent 5c7f22b commit 6782a65

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

petprep/reports/tests/test_reports.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,14 @@
1818
(
1919
3,
2020
[
21-
'sub-001_anat.html',
22-
'sub-001_ses-001_func.html',
23-
'sub-001_ses-003_func.html',
24-
'sub-001_ses-004_func.html',
25-
'sub-001_ses-005_func.html',
26-
'sub-001_ses-001_pet.html',
27-
'sub-001_ses-003_pet.html',
28-
'sub-001_ses-004_pet.html',
29-
'sub-001_ses-005_pet.html',
21+
'sub-01_anat.html',
22+
'sub-01_ses-001_pet.html',
23+
'sub-01_ses-003_pet.html',
24+
'sub-01_ses-004_pet.html',
25+
'sub-01_ses-005_pet.html',
3026
],
3127
),
32-
(4, ['sub-001.html']),
28+
(4, ['sub-01.html']),
3329
],
3430
)
3531
# Test with and without crash file
@@ -41,7 +37,7 @@
4137
'session_list', [['001', '003', '004', '005'], ['ses-001', 'ses-003', 'ses-004', 'ses-005']]
4238
)
4339
# Test sub- prefix stripping
44-
@pytest.mark.parametrize('subject_label', ['001', 'sub-001'])
40+
@pytest.mark.parametrize('subject_label', ['01', 'sub-01'])
4541
@pytest.mark.skipif(
4642
not Path.exists(data_dir / 'work'),
4743
reason='Package installed - large test data directory excluded from wheel',
@@ -82,7 +78,7 @@ def mock_session_list(*args, **kwargs):
8278
config.execution.layout = BIDSLayout(data_dir / 'ds000005')
8379
monkeypatch.setattr(config.execution.layout, 'get_sessions', mock_session_list)
8480
monkeypatch.setattr(
85-
config.execution, 'bids_filters', {'bold': {'session': ['001', '003', '004', '005']}}
81+
config.execution, 'bids_filters', {'pet': {'session': ['001', '003', '004', '005']}}
8682
)
8783

8884
# Generate report

0 commit comments

Comments
 (0)