Skip to content

Commit 29b66ed

Browse files
rupertnashmr-c
authored andcommitted
test_dependencies: fix import of galaxy tool_util
1 parent 14c3f8f commit 29b66ed

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_dependencies.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
import os
22
from shutil import which
3+
from types import ModuleType
4+
from typing import Any, Optional
35

46
import pytest
57

68
from cwltool.utils import onWindows
79

810
from .util import get_data, get_main_output, needs_docker
911

12+
deps = None # type: Optional[ModuleType]
1013
try:
11-
from galaxy.tools import deps # type: ignore
14+
from galaxy.tool_util import deps
1215
except ImportError:
13-
deps = None
16+
pass
1417

1518

1619
@needs_docker
@@ -35,6 +38,7 @@ def test_bioconda() -> None:
3538
assert error_code == 0, stderr
3639

3740

41+
@pytest.mark.skipif(not deps, reason="galaxy-lib is not installed")
3842
@pytest.mark.skipif(not which("modulecmd"), reason="modulecmd not installed")
3943
def test_modules() -> None:
4044
wflow = get_data("tests/random_lines.cwl")

0 commit comments

Comments
 (0)