Skip to content

Commit b2f1830

Browse files
committed
added basic test that actually runs mrconvert
1 parent 5a32ce5 commit b2f1830

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import pytest
2+
from pydra.tasks.mrtrix3.utils import MRConvert
3+
from medimages4tests.dicom.mri.dwi.siemens.skyra.syngo_d13c import sample_image
4+
5+
6+
@pytest.fixture
7+
def dicom_dataset():
8+
return sample_image()
9+
10+
11+
def test_mrconvert(dicom_dataset):
12+
13+
task = MRConvert(in_file=dicom_dataset, out_file="test.nii.gz")
14+
15+
result = task()
16+
17+
assert result.output.out_file.exists()

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ test =
4444
pytest-env
4545
pytest-xdist
4646
pytest-rerunfailures
47+
medimages4tests
4748
codecov
4849
tests =
4950
%(test)s

0 commit comments

Comments
 (0)