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 7
7
needs_docker , working_directory ,
8
8
needs_singularity , temp_dir ,
9
9
windows_needs_docker )
10
+ from cwltool .resolver import Path , resolve_local
11
+ from .test_fetch import norm
10
12
11
13
@windows_needs_docker
12
14
def test_check_version ():
@@ -49,10 +51,12 @@ def test_checklink_outputSource():
49
51
50
52
"""
51
53
54
+ outsrc = norm (Path (get_data ("tests/wf/1st-workflow.cwl" )).as_uri ())+ "#argument/classfile"
55
+
52
56
loadingContext = LoadingContext ({"do_validate" : True })
53
57
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
55
59
56
60
loadingContext = LoadingContext ({"do_validate" : False })
57
61
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
You can’t perform that action at this time.
0 commit comments