Skip to content

Commit c568a7b

Browse files
committed
handle merge conflicts
1 parent 0c2e1b5 commit c568a7b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

fmriprep/utils/tests/test_derivative_cache.py

+22
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,28 @@
55
from fmriprep.utils import bids
66

77

8+
@pytest.mark.parametrize('desc', ['hmc', 'coreg'])
9+
def test_baseline_found_as_str(tmp_path: Path, desc: str):
10+
subject = '0'
11+
task = 'rest'
12+
13+
to_find = tmp_path.joinpath(
14+
f'sub-{subject}', 'func', f'sub-{subject}_task-{task}_desc-{desc}_boldref.nii.gz'
15+
)
16+
to_find.parent.mkdir(parents=True)
17+
to_find.touch()
18+
19+
entities = {
20+
'subject': subject,
21+
'task': task,
22+
'suffix': 'bold',
23+
'extension': '.nii.gz',
24+
}
25+
26+
derivs = bids.collect_derivatives(derivatives_dir=tmp_path, entities=entities)
27+
assert dict(derivs) == {f'{desc}_boldref': str(to_find), 'transforms': {}}
28+
29+
830
@pytest.mark.parametrize('xfm', ['boldref2fmap', 'boldref2anat', 'hmc'])
931
def test_transforms_found_as_str(tmp_path: Path, xfm: str):
1032
subject = '0'

0 commit comments

Comments
 (0)