X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e61df48303291900581ef4a64dcf97864598c5f4..bdabe39ff5360f904de323cd850195237179dcaf:/sdk/python/tests/test_retry_job_helpers.py?ds=sidebyside diff --git a/sdk/python/tests/test_retry_job_helpers.py b/sdk/python/tests/test_retry_job_helpers.py index 9ad957a3cc..76c62cb0ce 100644 --- a/sdk/python/tests/test_retry_job_helpers.py +++ b/sdk/python/tests/test_retry_job_helpers.py @@ -1,4 +1,6 @@ -#!/usr/bin/env python +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import from builtins import object @@ -74,34 +76,3 @@ class CurrentJobTestCase(ApiClientRetryTestMixin, unittest.TestCase): def run_method(self): arvados.current_job() - - -class CurrentTaskTestCase(ApiClientRetryTestMixin, 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() - - -class TaskSetOutputTestCase(CurrentTaskTestCase, unittest.TestCase): - - DEFAULT_EXCEPTION = arvados.errors.ApiError - - def tearDown(self): - super(TaskSetOutputTestCase, self).tearDown() - run_test_server.reset() - - def run_method(self, locator=ApiClientRetryTestMixin.TEST_LOCATOR): - arvados.task_set_output({'uuid':self.TEST_UUID},s=locator)