1212from horreum .raw_client .api .test .test_request_builder import TestRequestBuilder
1313from horreum .raw_client .api .user .apikey .apikey_post_request_body import ApikeyPostRequestBody
1414from horreum .raw_client .models .key_type import KeyType
15- from horreum .raw_client .models .protected_type_access import ProtectedType_access
1615from horreum .raw_client .models .test import Test
16+ from horreum .raw_client .models .test_access import Test_access
1717
1818DEFAULT_CONNECTION_TIMEOUT : int = 30
1919DEFAULT_REQUEST_TIMEOUT : int = 100
@@ -135,7 +135,7 @@ async def test_api_key(custom_authenticated_client: HorreumClient):
135135@pytest .mark .asyncio
136136async def test_check_create_test (custom_authenticated_client : HorreumClient ):
137137 # Create new test
138- t = Test (name = "TestName" , description = "Simple test" , owner = "dev-team" , access = ProtectedType_access .PUBLIC )
138+ t = Test (name = "TestName" , description = "Simple test" , owner = "dev-team" , access = Test_access . PROTECTED .PUBLIC )
139139 created = await custom_authenticated_client .raw_client .api .test .post (t )
140140 assert created is not None
141141 assert (await custom_authenticated_client .raw_client .api .test .get ()).count == 1
@@ -149,7 +149,7 @@ async def test_check_create_test(custom_authenticated_client: HorreumClient):
149149@pytest .mark .asyncio
150150async def test_create_test_unauthorized (anonymous_client : HorreumClient ):
151151 # Create new test
152- t = Test (name = "TestName" , description = "Simple test" , owner = "dev-team" , access = ProtectedType_access .PUBLIC )
152+ t = Test (name = "TestName" , description = "Simple test" , owner = "dev-team" , access = Test_access . PROTECTED .PUBLIC )
153153 with pytest .raises (APIError ) as ex :
154154 await anonymous_client .raw_client .api .test .post (t )
155155 assert ex .value .response_status_code == 401
0 commit comments