@@ -35,7 +35,7 @@ def test_without_an_output_option(runner, client, run):
35
35
cwls = []
36
36
for tool_path in tools :
37
37
with tool_path .open ('r' ) as f :
38
- cwls .append (CWLClass .from_cwl (yaml .load (f )))
38
+ cwls .append (CWLClass .from_cwl (yaml .safe_load (f )))
39
39
40
40
assert cwls [0 ].inputs != cwls [1 ].inputs
41
41
assert cwls [0 ].outputs != cwls [1 ].outputs
@@ -55,7 +55,7 @@ def test_with_an_output_option(runner, client, run):
55
55
cwls = []
56
56
for tool_path in tools :
57
57
with tool_path .open ('r' ) as f :
58
- cwls .append (CWLClass .from_cwl (yaml .load (f )))
58
+ cwls .append (CWLClass .from_cwl (yaml .safe_load (f )))
59
59
60
60
assert cwls [0 ].inputs == cwls [1 ].inputs
61
61
assert cwls [0 ].outputs == cwls [1 ].outputs
@@ -79,7 +79,7 @@ def test_output_directory_with_output_option(runner, client, run):
79
79
cwls = []
80
80
for tool_path in tools :
81
81
with tool_path .open ('r' ) as f :
82
- cwls .append (CWLClass .from_cwl (yaml .load (f )))
82
+ cwls .append (CWLClass .from_cwl (yaml .safe_load (f )))
83
83
84
84
assert cwls [0 ].inputs != cwls [1 ].inputs
85
85
assert cwls [0 ].outputs != cwls [1 ].outputs
@@ -107,7 +107,7 @@ def test_output_directory_without_separate_outputs(runner, client, run):
107
107
assert 1 == len (tools )
108
108
109
109
with tools [0 ].open ('r' ) as f :
110
- cwl = CWLClass .from_cwl (yaml .load (f ))
110
+ cwl = CWLClass .from_cwl (yaml .safe_load (f ))
111
111
112
112
assert 1 == len (cwl .outputs )
113
113
assert 'Directory' == cwl .outputs [0 ].type
0 commit comments