[ARVADOS] updated: ce00b3ce9b3360d0f21c400622536dbcabbc719a
git at public.curoverse.com
git at public.curoverse.com
Tue Oct 6 17:09:56 EDT 2015
Summary of changes:
sdk/python/tests/test_task_output_retry.py | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
via ce00b3ce9b3360d0f21c400622536dbcabbc719a (commit)
from b5a183155ad9a4332cd0f2b2337876876feb70d5 (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 ce00b3ce9b3360d0f21c400622536dbcabbc719a
Author: Bryan Cosca <bcosc at curoverse.com>
Date: Tue Oct 6 17:09:49 2015 -0400
6600: flailing, check why we didn't fail
diff --git a/sdk/python/tests/test_task_output_retry.py b/sdk/python/tests/test_task_output_retry.py
index 9b44e3e..31c5462 100644
--- a/sdk/python/tests/test_task_output_retry.py
+++ b/sdk/python/tests/test_task_output_retry.py
@@ -4,17 +4,32 @@ import mock
import os
import unittest
import hashlib
+import run_test_server
import arvados
import arvados_testutil as tutil
+from apiclient import http as apiclient_http
class ApiClientRetrytestMixin(object):
TEST_UUID = 'zzzzz-zzzzz-zzzzzzzzzzzzzzz'
TEST_LOCATOR = 'd41d8cd98f00b204e9800998ecf8427e+0'
- def setUp(self):
- self.api_client = mock.MagicMock()
+ @classmethod
+ def setUpClass(cls):
+ run_test_server.run()
+ mock_responses = {
+ 'arvados.job_tasks().update().execute': (tutil.fake_httplib2_response(500), "")
+ }
+ req_builder = apiclient_http.RequestMockBuilder(mock_responses)
+ cls.api = arvados.api('v1',
+ host=os.environ['ARVADOS_API_HOST'],
+ token='discovery-doc-only-no-token-needed',
+ insecure=True,
+ requestBuilder=req_builder)
+
+ def tearDown(cls):
+ run_test_server.reset()
def new_client(self, **kwargs):
return self.api_client(**kwargs)
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list