Skip to content

Commit 1b908a8

Browse files
committed
adding FSL check for tests that run the task
1 parent a4aef11 commit 1b908a8

File tree

11 files changed

+12
-0
lines changed

11 files changed

+12
-0
lines changed

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

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

55

6+
@pytest.mark.skipif("FSLDIR" not in os.environ, reason="no FSL found")
67
@pytest.mark.parametrize(
78
"inputs, outputs", [({"ref_file": 'f"{in_file}"'}, ["out_file"])]
89
)

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

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

55

6+
@pytest.mark.skipif("FSLDIR" not in os.environ, reason="no FSL found")
67
@pytest.mark.parametrize(
78
"inputs, outputs",
89
[

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

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

55

6+
@pytest.mark.skipif("FSLDIR" not in os.environ, reason="no FSL found")
67
@pytest.mark.parametrize("inputs, outputs", [])
78
def test_FAST(test_data, inputs, outputs):
89
in_file = Path(test_data) / "test.nii.gz"

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

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

55

6+
@pytest.mark.skipif("FSLDIR" not in os.environ, reason="no FSL found")
67
@pytest.mark.parametrize("inputs, outputs", [])
78
def test_FIRST(test_data, inputs, outputs):
89
in_file = Path(test_data) / "test.nii.gz"

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

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

55

6+
@pytest.mark.skipif("FSLDIR" not in os.environ, reason="no FSL found")
67
@pytest.mark.parametrize("inputs, outputs", [])
78
def test_FLIRT(test_data, inputs, outputs):
89
in_file = Path(test_data) / "test.nii.gz"

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

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

55

6+
@pytest.mark.skipif("FSLDIR" not in os.environ, reason="no FSL found")
67
@pytest.mark.parametrize(
78
"inputs, outputs",
89
[

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

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

55

6+
@pytest.mark.skipif("FSLDIR" not in os.environ, reason="no FSL found")
67
@pytest.mark.parametrize("inputs, outputs", [(None, ["out_file"])])
78
def test_MCFLIRT(test_data, inputs, outputs):
89
in_file = Path(test_data) / "test.nii.gz"

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

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

55

6+
@pytest.mark.skipif("FSLDIR" not in os.environ, reason="no FSL found")
67
@pytest.mark.parametrize("inputs, outputs", [])
78
def test_PRELUDE(test_data, inputs, outputs):
89
in_file = Path(test_data) / "test.nii.gz"

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

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

55

6+
@pytest.mark.skipif("FSLDIR" not in os.environ, reason="no FSL found")
67
@pytest.mark.parametrize(
78
"inputs, outputs",
89
[({"ref_file": 'f"{in_file}"'}, ["out_file", "slice_time_corrected_file"])],

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

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

55

6+
@pytest.mark.skipif("FSLDIR" not in os.environ, reason="no FSL found")
67
@pytest.mark.parametrize(
78
"inputs, outputs",
89
[({"brightness_threshold": 0.01, "fwhm": 2}, ["out_file", "smoothed_file"])],

0 commit comments

Comments
 (0)