Skip to content

Commit c5d5d9e

Browse files
committed
changing skipif to xfail for tests that require fsl
1 parent 1b908a8 commit c5d5d9e

File tree

11 files changed

+32
-11
lines changed

11 files changed

+32
-11
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
from ..applywarp import ApplyWarp
44

55

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

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
from ..bet import BET
44

55

6-
@pytest.mark.skipif("FSLDIR" not in os.environ, reason="no FSL found")
6+
@pytest.mark.xfail(
7+
"FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError
8+
)
79
@pytest.mark.parametrize(
810
"inputs, outputs",
911
[

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
from ..fast import FAST
44

55

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

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
from ..first import FIRST
44

55

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

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
from ..flirt import FLIRT
44

55

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

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
from ..fnirt import FNIRT
44

55

6-
@pytest.mark.skipif("FSLDIR" not in os.environ, reason="no FSL found")
6+
@pytest.mark.xfail(
7+
"FSLDIR" not in os.environ, reason="no FSL found", raises=FileNotFoundError
8+
)
79
@pytest.mark.parametrize(
810
"inputs, outputs",
911
[

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
from ..mcflirt import MCFLIRT
44

55

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

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
from ..prelude import PRELUDE
44

55

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

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
from ..slicetimer import SliceTimer
44

55

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

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
from ..susan import SUSAN
44

55

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

0 commit comments

Comments
 (0)