projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
12020: Fix unreliable test.
[arvados.git]
/
sdk
/
python
/
tests
/
test_pipeline_template.py
diff --git
a/sdk/python/tests/test_pipeline_template.py
b/sdk/python/tests/test_pipeline_template.py
index bc82271f9c4f0019e6565086f2405e20ee8d3bcc..88138f3ed2cde64c6137b696c283294c88b3ffd1 100644
(file)
--- a/
sdk/python/tests/test_pipeline_template.py
+++ b/
sdk/python/tests/test_pipeline_template.py
@@
-1,3
+1,8
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+from __future__ import absolute_import
# usage example:
#
# ARVADOS_API_TOKEN=abc ARVADOS_API_HOST=arvados.local python -m unittest discover
# usage example:
#
# ARVADOS_API_TOKEN=abc ARVADOS_API_HOST=arvados.local python -m unittest discover
@@
-5,11
+10,11
@@
import unittest
import arvados
import apiclient
import unittest
import arvados
import apiclient
-import run_test_server
+
from .
import run_test_server
-class PipelineTemplateTest(
unittest.TestCase
):
- def setUp(self):
- run_test_server.run()
+class PipelineTemplateTest(
run_test_server.TestCaseWithServers
):
+ MAIN_SERVER = {}
+ KEEP_SERVER = {}
def runTest(self):
run_test_server.authorize_with("admin")
def runTest(self):
run_test_server.authorize_with("admin")
@@
-55,6
+60,3
@@
class PipelineTemplateTest(unittest.TestCase):
geterror_response = arvados.api('v1').pipeline_templates().get(
uuid=pt_uuid
).execute()
geterror_response = arvados.api('v1').pipeline_templates().get(
uuid=pt_uuid
).execute()
-
- def tearDown(self):
- run_test_server.stop()