Fix cwl tests refs #15241
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Mon, 20 May 2019 20:42:11 +0000 (16:42 -0400)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Mon, 20 May 2019 20:42:11 +0000 (16:42 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>

sdk/cwl/tests/test_container.py
sdk/cwl/tests/test_submit.py

index 07d962bf9b55e2d33efab5b470b3146cab8c49f9..3ddfd358a891431ed8c74d974458f201e862641b 100644 (file)
@@ -324,7 +324,7 @@ class TestContainer(unittest.TestCase):
         call_args, call_kwargs = runner.api.container_requests().create.call_args
 
         vwdmock.copy.assert_has_calls([mock.call('bar', 'foo', source_collection=sourcemock)])
-        vwdmock.copy.assert_has_calls([mock.call('', 'foo2', source_collection=sourcemock)])
+        vwdmock.copy.assert_has_calls([mock.call('.', 'foo2', source_collection=sourcemock)])
         vwdmock.copy.assert_has_calls([mock.call('baz/filename', 'filename', source_collection=sourcemock)])
         vwdmock.copy.assert_has_calls([mock.call('subdir', 'subdir', source_collection=sourcemock)])
 
index 9535f6ba206bfadf267dda54bbad19fcecf0f961..f1118695023d017d5507103d4143245e9a0d2a63 100644 (file)
@@ -1394,6 +1394,7 @@ class TestSubmit(unittest.TestCase):
 
     @stubs
     def test_submit_request_uuid(self, stubs):
+        stubs.api._rootDesc["remoteHosts"]["zzzzz"] = "123"
         stubs.expect_container_request_uuid = "zzzzz-xvhdp-yyyyyyyyyyyyyyy"
 
         stubs.api.container_requests().update().execute.return_value = {