Skip to content

Instantly share code, notes, and snippets.

@anton-khodak
Created January 22, 2018 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anton-khodak/1e34608e5c4bc2c858a1226fe5f2996e to your computer and use it in GitHub Desktop.
Save anton-khodak/1e34608e5c4bc2c858a1226fe5f2996e to your computer and use it in GitHub Desktop.
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
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