6
6
7
7
from .util import run_with_mock_cwl_runner , get_data
8
8
import xml .etree .ElementTree as ET
9
-
9
+ import schema_salad . ref_resolver
10
10
11
11
class TestCategories (unittest .TestCase ):
12
12
maxDiff = None
13
13
14
14
def test_unsupported_with_required_tests (self ):
15
- args = ["--test" , get_data ("tests/test-data/required-unsupported.yml" )]
15
+ args = ["--test" , schema_salad . ref_resolver . file_uri ( get_data ("tests/test-data/required-unsupported.yml" ) )]
16
16
try :
17
17
cwd = os .getcwd ()
18
18
os .chdir (get_data ("tests/test-data/" ))
@@ -47,7 +47,7 @@ def test_unsupported_with_required_tests(self):
47
47
)
48
48
49
49
def test_unsupported_with_optional_tests (self ):
50
- args = ["--test" , get_data ("tests/test-data/optional-unsupported.yml" )]
50
+ args = ["--test" , schema_salad . ref_resolver . file_uri ( get_data ("tests/test-data/optional-unsupported.yml" ) )]
51
51
error_code , stdout , stderr = run_with_mock_cwl_runner (args )
52
52
self .assertEqual (error_code , 0 )
53
53
self .assertEqual (
@@ -58,7 +58,7 @@ def test_unsupported_with_optional_tests(self):
58
58
)
59
59
60
60
def test_error_with_optional_tests (self ):
61
- args = ["--test" , get_data ("tests/test-data/optional-error.yml" )]
61
+ args = ["--test" , schema_salad . ref_resolver . file_uri ( get_data ("tests/test-data/optional-error.yml" ) )]
62
62
error_code , stdout , stderr = run_with_mock_cwl_runner (args )
63
63
self .assertEqual (error_code , 1 )
64
64
self .assertIn ("1 failures" , stderr )
@@ -67,7 +67,7 @@ def test_category_in_junit_xml(self):
67
67
junit_xml_report = get_data ("tests/test-data/junit-report.xml" )
68
68
args = [
69
69
"--test" ,
70
- get_data ("tests/test-data/optional-error.yml" ),
70
+ schema_salad . ref_resolver . file_uri ( get_data ("tests/test-data/optional-error.yml" ) ),
71
71
"--junit-xml" ,
72
72
junit_xml_report ,
73
73
]
0 commit comments