Skip to content

Commit 3e9949b

Browse files
committed
Fix mock attribute names to match AnatomicalLongOutputs fields
The mocks used `long_to_anat_xfm`/`anat_to_long_xfm` but the actual NamedTuple fields are `long_to_template_xfm`/`template_to_long_xfm`. Mock() silently creates any attribute, so this mismatch was invisible.
1 parent 7aaca11 commit 3e9949b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/orchestration/test_longitudinal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def _mock_anat_outputs() -> Mock:
5656
m.csf_mask = fake / "csf_mask.nii.gz"
5757
m.gm_mask = fake / "gm_mask.nii.gz"
5858
m.wm_mask = fake / "wm_mask.nii.gz"
59-
m.long_to_anat_xfm = fake / "long_to_anat_xfm.nii.gz"
60-
m.anat_to_long_xfm = fake / "anat_to_long_xfm.nii.gz"
59+
m.long_to_template_xfm = fake / "long_to_template_xfm.nii.gz"
60+
m.template_to_long_xfm = fake / "template_to_long_xfm.nii.gz"
6161
return m
6262

6363

0 commit comments

Comments
 (0)