Skip to content

Commit 49cd284

Browse files
authored
Merge pull request #1014 from common-workflow-language/cwlVersion-travis-fix
Fixed inconsistent travis tests
2 parents eabc46e + a96c9ef commit 49cd284

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tests/test_parallel.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
from cwltool.context import RuntimeContext
44
from cwltool.executors import MultithreadedJobExecutor
5+
from cwltool import load_tool
56

67
from .util import get_data, get_windows_safe_factory, windows_needs_docker
78

89

910
@windows_needs_docker
1011
def test_sequential_workflow():
12+
load_tool.loaders = {}
1113
test_file = "tests/wf/count-lines1-wf.cwl"
1214
executor = MultithreadedJobExecutor()
1315
runtime_context = RuntimeContext()
@@ -21,6 +23,7 @@ def test_sequential_workflow():
2123

2224
@windows_needs_docker
2325
def test_scattered_workflow():
26+
load_tool.loaders = {}
2427
test_file = "tests/wf/scatter-wf4.cwl"
2528
job_file = "tests/wf/scatter-job2.json"
2629
factory = get_windows_safe_factory(executor=MultithreadedJobExecutor())

tests/test_target.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
from cwltool.main import main
2+
from cwltool import load_tool
23

34
from .util import get_data, windows_needs_docker
45

56

67
@windows_needs_docker
78
def test_target():
9+
load_tool.loaders = {}
810
"""Test --target option successful."""
911
test_file = "tests/wf/scatter-wf4.cwl"
1012
exit_code = main(['--target', 'out', get_data(test_file),
@@ -13,6 +15,7 @@ def test_target():
1315

1416

1517
def test_wrong_target():
18+
load_tool.loaders = {}
1619
"""Test --target option when value is wrong."""
1720
test_file = "tests/wf/scatter-wf4.cwl"
1821
exit_code = main(['--target', 'dummy_target',
@@ -23,6 +26,7 @@ def test_wrong_target():
2326

2427
@windows_needs_docker
2528
def test_target_packed():
29+
load_tool.loaders = {}
2630
"""Test --target option with packed workflow schema."""
2731
test_file = "tests/wf/scatter-wf4.json"
2832
exit_code = main(['--target', 'out',

0 commit comments

Comments
 (0)