Skip to content

Commit 72dd979

Browse files
committed
TST: Expand to testing single anatomical pathway
1 parent 3b82cf3 commit 72dd979

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

nibabies/workflows/tests/test_base.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@
7474
}
7575

7676

77+
T1W_ONLY = BASE_LAYOUT.copy()
78+
T1W_ONLY['01']['anat'] = [{'suffix': 'T1w'}]
79+
80+
T2W_ONLY = T1W_ONLY.copy()
81+
T2W_ONLY['01']['anat'] = [{'suffix': 'T2w'}]
82+
83+
7784
@pytest.fixture(scope='module', autouse=True)
7885
def _quiet_logger():
7986
import logging
@@ -91,11 +98,17 @@ def _reset_sdcflows_registry():
9198
clear_registry()
9299

93100

94-
@pytest.fixture(scope='module')
95-
def bids_root(tmp_path_factory):
101+
@pytest.fixture(scope='module', params=[BASE_LAYOUT, T1W_ONLY, T2W_ONLY])
102+
def bids_root(tmp_path_factory, request):
103+
"""
104+
Create a BIDS skeleton for various input types:
105+
- Full inputs (T1w + T2w)
106+
- T1w only
107+
- T2w only
108+
"""
96109
base = tmp_path_factory.mktemp('base')
97110
bids_dir = base / 'bids'
98-
generate_bids_skeleton(bids_dir, BASE_LAYOUT)
111+
generate_bids_skeleton(bids_dir, request.param)
99112

100113
# Ensure age information is available
101114
df = pd.DataFrame({'participant_id': ['sub-01'], 'age_months': ['1']})

0 commit comments

Comments
 (0)