Skip to content

Commit 2f60704

Browse files
author
Peter Amstutz
committed
Fix path to work on windows
1 parent b419da3 commit 2f60704

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_load_tool.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
needs_docker, working_directory,
88
needs_singularity, temp_dir,
99
windows_needs_docker)
10+
from cwltool.resolver import Path, resolve_local
11+
from .test_fetch import norm
1012

1113
@windows_needs_docker
1214
def test_check_version():
@@ -49,10 +51,12 @@ def test_checklink_outputSource():
4951
5052
"""
5153

54+
outsrc = norm(Path(get_data("tests/wf/1st-workflow.cwl")).as_uri())+"#argument/classfile"
55+
5256
loadingContext = LoadingContext({"do_validate": True})
5357
tool = load_tool(get_data("tests/wf/1st-workflow.cwl"), loadingContext)
54-
assert tool.tool["outputs"][0]["outputSource"] == "file://"+get_data("tests/wf/1st-workflow.cwl")+"#argument/classfile"
58+
assert tool.tool["outputs"][0]["outputSource"] == outsrc
5559

5660
loadingContext = LoadingContext({"do_validate": False})
5761
tool = load_tool(get_data("tests/wf/1st-workflow.cwl"), loadingContext)
58-
assert tool.tool["outputs"][0]["outputSource"] == "file://"+get_data("tests/wf/1st-workflow.cwl")+"#argument/classfile"
62+
assert tool.tool["outputs"][0]["outputSource"] == outsrc

0 commit comments

Comments
 (0)