Skip to content

Commit e97196a

Browse files
committed
fetch the test data dynamically
1 parent 51d64d5 commit e97196a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_examples.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -551,18 +551,18 @@ def test_checker(self):
551551
# mismatches its sink type.
552552
with self.assertRaises(schema_salad.validate.ValidationException):
553553
f = cwltool.factory.Factory()
554-
f.make("tests/checker_wf/broken-wf.cwl")
554+
f.make(get_data("tests/checker_wf/broken-wf.cwl"))
555555
with self.assertRaises(schema_salad.validate.ValidationException):
556556
f = cwltool.factory.Factory()
557-
f.make("tests/checker_wf/broken-wf2.cwl")
557+
f.make(get_data("tests/checker_wf/broken-wf2.cwl"))
558558

559559
def test_var_spool_cwl_checker(self):
560560
""" Confirm that references to /var/spool/cwl are caught."""
561561
with self.assertRaises(schema_salad.validate.ValidationException):
562562
f = cwltool.factory.Factory()
563-
f.make("tests/non_portable.cwl")
563+
f.make(get_data("tests/non_portable.cwl"))
564564
f = cwltool.factory.Factory(strict=False)
565-
f.make("tests/non_portable.cwl")
565+
f.make(get_data("tests/non_portable.cwl"))
566566

567567
class TestPrintDot(unittest.TestCase):
568568
def test_print_dot(self):

0 commit comments

Comments
 (0)