X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/261d51d1c2551c9e7dc87a8fca23caccfc613df4..07e339237850f463d18ce6c06446441c6684fc58:/sdk/cwl/tests/test_job.py diff --git a/sdk/cwl/tests/test_job.py b/sdk/cwl/tests/test_job.py index 9d97096d32..9a7199ea2a 100644 --- a/sdk/cwl/tests/test_job.py +++ b/sdk/cwl/tests/test_job.py @@ -1,4 +1,3 @@ - import logging import mock import unittest @@ -222,6 +221,12 @@ class TestWorkflow(unittest.TestCase): it.next().run() it.next().run() + with open("tests/wf/scatter2_subwf.cwl") as f: + subwf = f.read() + + mockcollection().open().__enter__().write.assert_has_calls([mock.call(subwf)]) + mockcollection().open().__enter__().write.assert_has_calls([mock.call('{"sleeptime":5}')]) + runner.api.jobs().create.assert_called_with( body={ 'minimum_script_version': '9e5b98e8f5f4727856b53447191f9c06e3da2ba6',