9929: Test case is more sensitive to mock return values
[arvados.git] / sdk / cwl / tests / test_submit.py
index 2dff3e8f9dbe422a7ca6e95037384cc4618c920b..d99a196ee3696b7196c6d4b97f071a905e156161 100644 (file)
@@ -55,7 +55,7 @@ def stubs(func):
         {
             "uuid": "zzzzz-4zz18-zzzzzzzzzzzzzz5",
             "portable_data_hash": "99999999999999999999999999999995+99",
-            "manifest_text": ""
+            "manifest_text": ". 8bfd9d5a8dc1a71ab286283f9ff6fa20+153 0:153:cwl.input.json"
         }        )
         stubs.api.collections().get().execute.return_value = {
             "portable_data_hash": "99999999999999999999999999999993+99", "manifest_text": "./tool 00000000000000000000000000000000+0 0:0:submit_tool.cwl 0:0:blub.txt"}
@@ -156,8 +156,9 @@ class TestSubmit(unittest.TestCase):
             mock.call(body={'manifest_text': '. d41d8cd98f00b204e9800998ecf8427e+0 '
                             '0:0:blub.txt 0:0:submit_tool.cwl\n',
                             'owner_uuid': 'zzzzz-tpzed-zzzzzzzzzzzzzzz',
-                            'name': 'New collection'},
-                      ensure_unique_name=True),
+                            'name': 'New collection',
+                            'replication_desired': None,
+            }, ensure_unique_name=True),
             mock.call().execute(num_retries=4),
             mock.call(body={
                 'manifest_text':
@@ -215,8 +216,9 @@ class TestSubmit(unittest.TestCase):
             mock.call(body={'manifest_text': '. d41d8cd98f00b204e9800998ecf8427e+0 '
                             '0:0:blub.txt 0:0:submit_tool.cwl\n',
                             'owner_uuid': 'zzzzz-tpzed-zzzzzzzzzzzzzzz',
-                            'name': 'New collection'},
-                      ensure_unique_name=True),
+                            'name': 'New collection',
+                            'replication_desired': None,
+            }, ensure_unique_name=True),
             mock.call().execute(num_retries=4),
             mock.call(body={
                 'manifest_text':