File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1
1
from pathlib import Path
2
+ from pytest import mark
3
+ from shutil import which
2
4
from tempfile import TemporaryDirectory
3
5
4
6
import cwl_utils .parser .cwl_v1_0 as parser
9
11
TEST_CWL = HERE / "../testdata/md5sum.cwl"
10
12
11
13
14
+ @mark .skipif (which ("docker" ) is None , reason = "docker is not available" )
12
15
def test_traverse_workflow () -> None :
13
16
"""Test container extraction tool using Docker."""
14
17
loaded = parser .load_document (str (TEST_CWL .resolve ()))
@@ -21,6 +24,7 @@ def test_traverse_workflow() -> None:
21
24
_ = image_puller .generate_udocker_loading_command ()
22
25
23
26
27
+ @mark .skipif (which ("singularity" ) is None , reason = "singularity is not available" )
24
28
def test_traverse_workflow_singularity () -> None :
25
29
"""Test container extraction tool using Singularity."""
26
30
loaded = parser .load_document (str (TEST_CWL .resolve ()))
You can’t perform that action at this time.
0 commit comments