Skip to content

Commit 4f45343

Browse files
authored
Merge pull request #5 from djarecka/mnt/no_fsl
adding FSL check for tests that run the task
2 parents 71b1e8e + c5d5d9e commit 4f45343

File tree

11 files changed

+33
-0
lines changed

11 files changed

+33
-0
lines changed

pydra/tasks/fsl/preprocess/tests/test_run_applywarp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from ..applywarp import ApplyWarp
44

55

6+
@pytest.mark.xfail(
7+
"FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError
8+
)
69
@pytest.mark.parametrize(
710
"inputs, outputs", [({"ref_file": 'f"{in_file}"'}, ["out_file"])]
811
)

pydra/tasks/fsl/preprocess/tests/test_run_bet.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from ..bet import BET
44

55

6+
@pytest.mark.xfail(
7+
"FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError
8+
)
69
@pytest.mark.parametrize(
710
"inputs, outputs",
811
[

pydra/tasks/fsl/preprocess/tests/test_run_fast.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from ..fast import FAST
44

55

6+
@pytest.mark.xfail(
7+
"FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError
8+
)
69
@pytest.mark.parametrize("inputs, outputs", [])
710
def test_FAST(test_data, inputs, outputs):
811
in_file = Path(test_data) / "test.nii.gz"

pydra/tasks/fsl/preprocess/tests/test_run_first.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from ..first import FIRST
44

55

6+
@pytest.mark.xfail(
7+
"FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError
8+
)
69
@pytest.mark.parametrize("inputs, outputs", [])
710
def test_FIRST(test_data, inputs, outputs):
811
in_file = Path(test_data) / "test.nii.gz"

pydra/tasks/fsl/preprocess/tests/test_run_flirt.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from ..flirt import FLIRT
44

55

6+
@pytest.mark.xfail(
7+
"FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError
8+
)
69
@pytest.mark.parametrize("inputs, outputs", [])
710
def test_FLIRT(test_data, inputs, outputs):
811
in_file = Path(test_data) / "test.nii.gz"

pydra/tasks/fsl/preprocess/tests/test_run_fnirt.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from ..fnirt import FNIRT
44

55

6+
@pytest.mark.xfail(
7+
"FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError
8+
)
69
@pytest.mark.parametrize(
710
"inputs, outputs",
811
[

pydra/tasks/fsl/preprocess/tests/test_run_mcflirt.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from ..mcflirt import MCFLIRT
44

55

6+
@pytest.mark.xfail(
7+
"FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError
8+
)
69
@pytest.mark.parametrize("inputs, outputs", [(None, ["out_file"])])
710
def test_MCFLIRT(test_data, inputs, outputs):
811
in_file = Path(test_data) / "test.nii.gz"

pydra/tasks/fsl/preprocess/tests/test_run_prelude.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from ..prelude import PRELUDE
44

55

6+
@pytest.mark.xfail(
7+
"FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError
8+
)
69
@pytest.mark.parametrize("inputs, outputs", [])
710
def test_PRELUDE(test_data, inputs, outputs):
811
in_file = Path(test_data) / "test.nii.gz"

pydra/tasks/fsl/preprocess/tests/test_run_slicetimer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from ..slicetimer import SliceTimer
44

55

6+
@pytest.mark.xfail(
7+
"FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError
8+
)
69
@pytest.mark.parametrize(
710
"inputs, outputs",
811
[({"ref_file": 'f"{in_file}"'}, ["out_file", "slice_time_corrected_file"])],

pydra/tasks/fsl/preprocess/tests/test_run_susan.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from ..susan import SUSAN
44

55

6+
@pytest.mark.xfail(
7+
"FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError
8+
)
69
@pytest.mark.parametrize(
710
"inputs, outputs",
811
[({"brightness_threshold": 0.01, "fwhm": 2}, ["out_file", "smoothed_file"])],

0 commit comments

Comments
 (0)