[ARVADOS] updated: b21e623902cb32b6d5a2fcf2c6ac9d92d472cb58

Git user git at public.curoverse.com
Tue Nov 15 10:13:05 EST 2016


Summary of changes:
 sdk/cwl/tests/test_container.py | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

       via  b21e623902cb32b6d5a2fcf2c6ac9d92d472cb58 (commit)
      from  5cd2757a79e7be7ed00156a69191893c3bb7e1c6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit b21e623902cb32b6d5a2fcf2c6ac9d92d472cb58
Author: radhika <radhika at curoverse.com>
Date:   Tue Nov 15 10:12:44 2016 -0500

    10290: update test assertions

diff --git a/sdk/cwl/tests/test_container.py b/sdk/cwl/tests/test_container.py
index 419385a..bb4bac3 100644
--- a/sdk/cwl/tests/test_container.py
+++ b/sdk/cwl/tests/test_container.py
@@ -116,7 +116,7 @@ class TestContainer(unittest.TestCase):
 
         call_args, call_kwargs = runner.api.container_requests().create.call_args
 
-        call_body = {
+        call_body_expected = {
                 'environment': {
                     'HOME': '/var/spool/cwl',
                     'TMPDIR': '/tmp'
@@ -140,11 +140,14 @@ class TestContainer(unittest.TestCase):
                 'command': ['ls'],
                 'cwd': '/var/spool/cwl',
                 'scheduling_parameters': {
-                    'partition': ['blurb']
+                    'partitions': ['blurb']
                 }
         }
-        for key in call_args:
-            self.assertEqual(call_args[key], call_kwargs[key])
+
+        call_body = call_kwargs.get('body', None)
+        self.assertNotEqual(None, call_body)
+        for key in call_body:
+            self.assertEqual(call_body_expected.get(key), call_body.get(key))
 
     @mock.patch("arvados.collection.Collection")
     def test_done(self, col):

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list