Skip to content

Commit 88ad2a6

Browse files
committed
tests: defer import of cwltool, so we can skip thoses tests to avoid a circular dependency if needed.
1 parent e413f9b commit 88ad2a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_graph_split.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import pytest
88
import requests
9-
from cwltool.tests.util import get_main_output
109

1110
from cwl_utils.graph_split import graph_split
1211

@@ -28,6 +27,8 @@ def test_graph_split(tmp_path: Path) -> None:
2827

2928
def test_graph_split_offline(tmp_path: Path) -> None:
3029
"""Confirm that a local provided example produces no exception."""
30+
from cwltool.tests.util import get_main_output
31+
3132
with get_path("testdata/js-expr-req-wf.cwl").open() as handle:
3233
graph_split(handle, tmp_path, "yaml", "main.cwl", True)
3334
target = tmp_path / "wf.cwl"
@@ -42,6 +43,8 @@ def test_graph_split_offline(tmp_path: Path) -> None:
4243

4344
def test_graph_split_json_offline(tmp_path: Path) -> None:
4445
"""Confirm that a local provided example produces no exception in JSON mode."""
46+
from cwltool.tests.util import get_main_output
47+
4548
target = tmp_path / "subdir" / "wf.cwl"
4649
with get_path("testdata/js-expr-req-wf.cwl").open() as handle:
4750
graph_split(handle, target.parent, "json", "main.cwl", True)

0 commit comments

Comments
 (0)