Skip to content

Commit 490a89d

Browse files
authored
Enhance test_segmentgtm_skip with random seed check
1 parent 9cf418d commit 490a89d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

petprep/interfaces/tests/test_segmentation_interface.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from pathlib import Path
22

3+
from ... import config
34
from ..segmentation import SegmentBS, SegmentGTM, SegmentWM
45

56

@@ -15,6 +16,10 @@ def test_segmentgtm_skip(tmp_path):
1516

1617
assert res.runtime.returncode == 0
1718
assert Path(res.outputs.out_file) == subj_dir / 'mri' / 'gtmseg.mgz'
19+
assert (
20+
res.runtime.environ['FREESURFER_RANDOM_SEED']
21+
== str(config.seeds.freesurfer)
22+
)
1823

1924

2025
def _fake_bs_run(self, cmd):

0 commit comments

Comments
 (0)