Skip to content

Commit

Permalink
Update fmriprep/utils/tests/test_derivative_cache.py
Browse files Browse the repository at this point in the history
Simplify assertion in test for loaded transforms

Co-authored-by: Chris Markiewicz <[email protected]>
  • Loading branch information
psadil and effigies authored Oct 2, 2024
1 parent 758caaf commit bef2a21
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fmriprep/utils/tests/test_derivative_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}}

0 comments on commit bef2a21

Please sign in to comment.