Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from tests.util import get_data
import cwltool.factory
import cwltool
f = cwltool.factory.Factory(on_error="continue")
# fail = f.make(get_data("tests/wf/scatterfail.cwl"))
fail = f.make(get_data("tests/wf/wffail.cwl"))
try:
fail()
except cwltool.factory.WorkflowStatus as e:
print("wf status")
else:
print("something else")
@mr-c

This comment has been minimized.

Copy link

mr-c commented Jan 22, 2018

diff --git a/tests/test_examples.py b/tests/test_examples.py
index 0b0c6090..3cde8585 100644
--- a/tests/test_examples.py
+++ b/tests/test_examples.py
@@ -139,6 +139,7 @@ class TestFactory(unittest.TestCase):
     def test_partial_scatter(self):
         f = cwltool.factory.Factory(on_error="continue")
         fail = f.make(get_data("tests/wf/scatterfail.cwl"))
+        import ipdb; ipdb.set_trace()
         try:
             fail()
         except cwltool.factory.WorkflowStatus as e:
pytest -s tests/test_examples.py::TestFactory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.