diff --git a/fmriprep/utils/tests/test_derivative_cache.py b/fmriprep/utils/tests/test_derivative_cache.py index 6aebf5d9..5641434e 100644 --- a/fmriprep/utils/tests/test_derivative_cache.py +++ b/fmriprep/utils/tests/test_derivative_cache.py @@ -22,11 +22,11 @@ def test_transforms_found_as_str(tmp_path: Path, xfm: str): 'extension': '.nii.gz', } if xfm == 'boldref2fmap': - to_find = f'sub-{entities['subject']}_task-{entities['task']}_from-{spec['from']}_to-auto00000_mode-image_xfm.txt' # noqa: E501 + to_find = f'sub-{entities["subject"]}_task-{entities["task"]}_from-{spec["from"]}_to-auto00000_mode-image_xfm.txt' # noqa: E501 else: - to_find = f'sub-{entities['subject']}_task-{entities['task']}_from-{spec['from']}_to-{spec['to']}_mode-image_xfm.txt' # noqa: E501 + to_find = f'sub-{entities["subject"]}_task-{entities["task"]}_from-{spec["from"]}_to-{spec["to"]}_mode-image_xfm.txt' # noqa: E501 - funcd = tmp_path / f'sub-{entities['subject']}' / 'func' + funcd = tmp_path / f'sub-{entities["subject"]}' / 'func' funcd.mkdir(parents=True) (funcd / to_find).touch()