Skip to content

Commit ea0cf68

Browse files
committed
fix(tests): hcp test case
Fixing the ``acq`` -> ``acquisition`` query made the HCP test case break.
1 parent 2bcdb04 commit ea0cf68

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

sdcflows/workflows/tests/test_phdiff.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,23 @@ def test_phdiff(bids_layouts, tmpdir, output_path, dataset, workdir):
1414
"""Test creation of the workflow."""
1515
tmpdir.chdir()
1616

17+
extra_entities = {}
18+
if dataset == 'ds001600':
19+
extra_entities['acquisition'] = 'v4'
20+
1721
data = bids_layouts[dataset]
1822
wf = Workflow(name='phdiff_%s' % dataset)
1923
phdiff_wf = init_phdiff_wf(omp_nthreads=2)
2024
phdiff_wf.inputs.inputnode.magnitude = data.get(
2125
suffix=['magnitude1', 'magnitude2'],
22-
acquisition='v4',
2326
return_type='file',
24-
extension=['.nii', '.nii.gz'])
27+
extension=['.nii', '.nii.gz'],
28+
**extra_entities)
2529

26-
phdiff_files = data.get(suffix='phasediff', acquisition='v4',
27-
extension=['.nii', '.nii.gz'])
30+
phdiff_files = data.get(
31+
suffix='phasediff',
32+
extension=['.nii', '.nii.gz'],
33+
**extra_entities)
2834

2935
phdiff_wf.inputs.inputnode.phasediff = [
3036
(ph.path, ph.get_metadata()) for ph in phdiff_files]

0 commit comments

Comments
 (0)