diff --git a/tests/test_noauth.py b/tests/test_noauth.py index a978cde8..911dd770 100644 --- a/tests/test_noauth.py +++ b/tests/test_noauth.py @@ -33,11 +33,11 @@ from actinia_core.core.common.config import global_config from actinia_core.core.common import redis_interface from actinia_core.core.common.process_queue import create_process_queue -from actinia_core.testsuite import ( - ActiniaRequests, - ActiniaTestCaseBase, - URL_PREFIX, -) +from actinia_core.testsuite import ActiniaRequests +try: + from .test_resource_base import ActiniaResourceTestCaseBase, URL_PREFIX +except Exception: + from test_resource_base import ActiniaResourceTestCaseBase, URL_PREFIX __license__ = "GPLv3" __author__ = "Anika Weinmann" @@ -92,7 +92,7 @@ } -class ActiniaWithoutAuthentication(ActiniaTestCaseBase): +class ActiniaWithoutAuthentication(ActiniaResourceTestCaseBase): """Test base class to test actinia without autentication""" server_test = False diff --git a/tests/test_resource_base.py b/tests/test_resource_base.py index 1928c23e..bdca2279 100644 --- a/tests/test_resource_base.py +++ b/tests/test_resource_base.py @@ -28,7 +28,7 @@ import os import signal import time -from actinia_core.testsuite import ActiniaTestCaseBase +from actinia_core.testsuite import ActiniaTestCaseBase, URL_PREFIX from actinia_core.core.common.config import global_config from actinia_core.endpoints import create_endpoints @@ -103,6 +103,7 @@ def stop_redis(): # Setup the environment setup_environment() +URL_PREFIX = URL_PREFIX class ActiniaResourceTestCaseBase(ActiniaTestCaseBase): pass