[ARVADOS] updated: c0aa6085ccfb5de315b834e9994dfbc1a6269a05

git at public.curoverse.com git at public.curoverse.com
Fri Aug 14 11:01:06 EDT 2015


Summary of changes:
 sdk/python/tests/test_init.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 sdk/python/tests/test_init.py

       via  c0aa6085ccfb5de315b834e9994dfbc1a6269a05 (commit)
      from  40ba58c70a32e14de92e46d5d74a85d0a9642ee8 (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 c0aa6085ccfb5de315b834e9994dfbc1a6269a05
Author: Bryan Cosca <bcosc at curoverse.com>
Date:   Fri Aug 14 11:01:02 2015 -0400

    add test_init.py

diff --git a/sdk/python/tests/test_init.py b/sdk/python/tests/test_init.py
new file mode 100644
index 0000000..c4bb006
--- /dev/null
+++ b/sdk/python/tests/test_init.py
@@ -0,0 +1,16 @@
+import mock
+import os
+import unittest
+
+import arvados
+import arvados.collection
+
+class TestSDK(unittest.TestCase):
+
+    FAKE_HASH = '7idummyhashb0b1f1f03e4e6f69c4a4e+28243'
+
+    def test_task_set_output(self, mock_input=FAKE_HASH):#, num_retries=2):
+        mock_api = mock.MagicMock(name='mock_api_client')
+        mock_api.job_tasks().update().execute().side_effect = Exception('mock API DOWN')
+        arvados.task_set_output(s=mock_input,api_client=mock_api)#,num_retries=2)
+        # need a spy to make mock_api return down if retry_num = 1 and mock_api return up if retry_num = 2

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list