[ARVADOS] updated: 3da9a8b9ac895c074a18a99a5a5a78611d5de111
git at public.curoverse.com
git at public.curoverse.com
Thu Oct 22 16:59:05 EDT 2015
Summary of changes:
sdk/python/tests/test_retry_job_helpers.py | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
via 3da9a8b9ac895c074a18a99a5a5a78611d5de111 (commit)
from 670bb19401f5495cf553a725616a4ead5ea3046b (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 3da9a8b9ac895c074a18a99a5a5a78611d5de111
Author: Bryan Cosca <bcosc at curoverse.com>
Date: Thu Oct 22 16:58:57 2015 -0400
6600: current_task.set_output() is not returning anything
diff --git a/sdk/python/tests/test_retry_job_helpers.py b/sdk/python/tests/test_retry_job_helpers.py
index 6e562a0..0ee9c8c 100644
--- a/sdk/python/tests/test_retry_job_helpers.py
+++ b/sdk/python/tests/test_retry_job_helpers.py
@@ -92,6 +92,25 @@ class CurrentTaskTestCase(ApiClientRetryTestMixin, unittest.TestCase):
def run_method(self):
arvados.current_task()
+class CurrentTaskSetOutputTestCase(CurrentTaskTestCase, unittest.TestCase):
+
+ DEFAULT_EXCEPTION = arvados.errors.ApiError
+
+ def setUp(self):
+ super(CurrentTaskTestCase, self).setUp()
+ os.environ['TASK_UUID'] = 'zzzzz-zzzzz-zzzzzzzzzzzzzzz'
+ os.environ['TASK_WORK'] = '.'
+
+ def tearDown(self):
+ del os.environ['TASK_UUID']
+ del os.environ['TASK_WORK']
+ arvados._current_task = None
+ super(CurrentTaskTestCase, self).tearDown()
+
+ def run_method(self):
+ arvados.current_task()['uuid']=self.TEST_UUID
+ arvados.current_task().set_output(self.TEST_LOCATOR)
+
class TaskSetOutputTestCase(CurrentTaskTestCase, unittest.TestCase):
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list