Skip to content

Commit c954c5a

Browse files
committed
Fix tests.
1 parent 786dcbe commit c954c5a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

xcp_d/tests/test_interfaces_bids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_copy_atlas(tmp_path_factory):
3737
assert os.path.isfile(result.outputs.out_file.replace('.nii.gz', '.json'))
3838
assert (
3939
os.path.basename(result.outputs.out_file)
40-
== 'tpl-MNI152NLin2009cAsym_atlas-Y_res-02_dseg.nii.gz'
40+
== 'tpl-MNI152NLin2009cAsym_atlas-Y_res-2_dseg.nii.gz'
4141
)
4242

4343
# Check that the NIfTI file raises an error if the resolution varies

xcp_d/tests/test_utils_atlas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def test_collect_atlases(datasets, caplog, tmp_path_factory):
103103
with open(
104104
tmpdir / 'tpl-MNI152NLin6Asym' / 'tpl-MNI152NLin6Asym_atlas-TEST_res-01_dseg.tsv', 'w'
105105
) as fo:
106-
fo.write('label\ntest\n')
106+
fo.write('name\ntest\n')
107107

108108
with pytest.raises(ValueError, match="'index' column not found"):
109109
atlas.collect_atlases(
@@ -117,7 +117,7 @@ def test_collect_atlases(datasets, caplog, tmp_path_factory):
117117
with open(
118118
tmpdir / 'tpl-MNI152NLin6Asym' / 'tpl-MNI152NLin6Asym_atlas-TEST_res-01_dseg.tsv', 'w'
119119
) as fo:
120-
fo.write('index\tlabel\n1\ttest\n')
120+
fo.write('index\tname\n1\ttest\n')
121121

122122
atlas_cache = atlas.collect_atlases(
123123
datasets={'test': tmpdir},

0 commit comments

Comments
 (0)