File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
2
from shutil import which
3
+ from types import ModuleType
4
+ from typing import Any , Optional
3
5
4
6
import pytest
5
7
6
8
from cwltool .utils import onWindows
7
9
8
10
from .util import get_data , get_main_output , needs_docker
9
11
12
+ deps = None # type: Optional[ModuleType]
10
13
try :
11
- from galaxy .tools import deps # type: ignore
14
+ from galaxy .tool_util import deps
12
15
except ImportError :
13
- deps = None
16
+ pass
14
17
15
18
16
19
@needs_docker
@@ -35,6 +38,7 @@ def test_bioconda() -> None:
35
38
assert error_code == 0 , stderr
36
39
37
40
41
+ @pytest .mark .skipif (not deps , reason = "galaxy-lib is not installed" )
38
42
@pytest .mark .skipif (not which ("modulecmd" ), reason = "modulecmd not installed" )
39
43
def test_modules () -> None :
40
44
wflow = get_data ("tests/random_lines.cwl" )
You can’t perform that action at this time.
0 commit comments