Skip to content

Commit c6b110b

Browse files
committed
test: Add smoke tests for ants workflows
1 parent ee9bed5 commit c6b110b

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

niworkflows/anat/tests/__init__.py

Whitespace-only changes.

niworkflows/anat/tests/test_ants.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import pytest
2+
from nipype.pipeline.engine import Workflow
3+
4+
from ..ants import init_brain_extraction_wf, init_n4_only_wf
5+
6+
7+
@pytest.mark.parametrize('atropos_refine', [True, False])
8+
@pytest.mark.parametrize('use_laplacian', [True, False])
9+
@pytest.mark.parametrize('template', ['OASIS30ANTs', 'MNI152NLin2009cAsym', 'MNI152NLin6Asym'])
10+
def test_brain_extraction_wf_smoketest(atropos_refine, use_laplacian, template):
11+
wf = init_brain_extraction_wf(
12+
in_template=template,
13+
atropos_refine=atropos_refine,
14+
use_laplacian=use_laplacian,
15+
)
16+
assert isinstance(wf, Workflow)
17+
18+
19+
@pytest.mark.parametrize('atropos_refine', [True, False])
20+
def test_n4_only_wf_smoketest(atropos_refine):
21+
wf = init_n4_only_wf(atropos_refine=atropos_refine)
22+
assert isinstance(wf, Workflow)

0 commit comments

Comments
 (0)