From bef2a21de2dbf487d7754b7697db9158db6a55ad Mon Sep 17 00:00:00 2001 From: Patrick Sadil Date: Wed, 2 Oct 2024 09:29:42 -0400 Subject: [PATCH] Update fmriprep/utils/tests/test_derivative_cache.py Simplify assertion in test for loaded transforms Co-authored-by: Chris Markiewicz --- fmriprep/utils/tests/test_derivative_cache.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fmriprep/utils/tests/test_derivative_cache.py b/fmriprep/utils/tests/test_derivative_cache.py index 28c3c03c..234792f6 100644 --- a/fmriprep/utils/tests/test_derivative_cache.py +++ b/fmriprep/utils/tests/test_derivative_cache.py @@ -29,7 +29,4 @@ def test_transforms_found_as_str(tmp_path: Path, xfm: str): entities=entities, fieldmap_id='auto_00000', ) - transforms_in_derivs = 'transforms' in derivs - xfm_in_transforms = xfm in derivs.get('transforms') - transform_is_str = isinstance(derivs.get('transforms').get(xfm), str) - assert all((transforms_in_derivs, xfm_in_transforms, transform_is_str)) + assert derivs == {'transforms': {xfm: str(to_find)}}