2727__copyright__ = "Copyright 2023, mundialis GmbH & Co. KG"
2828__maintainer__ = "Anika Weinmann"
2929
30- from actinia .utils import *
30+ import pytest
31+
32+ from actinia .utils import (
33+ create_actinia_pc_item ,
34+ request_and_check ,
35+ set_job_names ,
36+ )
3137from .actinia_config import ACTINIA_BASEURL , ACTINIA_VERSION , ACTINIA_AUTH
3238
3339
@@ -43,7 +49,7 @@ def test_request_and_check_wrong_url(self):
4349 url = f"{ ACTINIA_BASEURL } api/{ ACTINIA_VERSION } /version_fail"
4450 err_msg = "The requested URL was not found on the server."
4551 with pytest .raises (Exception ) as excinfo :
46- resp = request_and_check (url , ACTINIA_AUTH , status_code = 200 )
52+ request_and_check (url , ACTINIA_AUTH , status_code = 200 )
4753 assert err_msg in str (excinfo .value )
4854
4955 def test_request_and_check_wrong_auth (self ):
@@ -52,7 +58,7 @@ def test_request_and_check_wrong_auth(self):
5258 err_msg = "Unauthorized Access"
5359 wrong_auth = ("actinia-gdi" , "wrong_pw" )
5460 with pytest .raises (Exception ) as excinfo :
55- resp = request_and_check (url , wrong_auth , status_code = 200 )
61+ request_and_check (url , wrong_auth , status_code = 200 )
5662 assert err_msg in str (excinfo .value )
5763
5864 def test_set_job_names (self ):
0 commit comments