File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
services/web/server/tests/unit/with_dbs/03 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1717import pytest
1818import redis .asyncio as aioredis
1919from aiohttp .test_utils import TestClient
20- from models_library .api_schemas_webserver .schemas import PermissionGet
20+ from models_library .api_schemas_webserver .users import MyPermissionGet
2121from models_library .products import ProductName
2222from pydantic import TypeAdapter
2323from pytest_simcore .helpers .assert_checks import assert_status
@@ -450,7 +450,7 @@ async def test_list_permissions(
450450 data , error = await assert_status (resp , expected_response )
451451 if data :
452452 assert not error
453- list_of_permissions = TypeAdapter (list [PermissionGet ]).validate_python (data )
453+ list_of_permissions = TypeAdapter (list [MyPermissionGet ]).validate_python (data )
454454 assert (
455455 len (list_of_permissions ) == 1
456456 ), "for now there is only 1 permission, but when we sync frontend/backend permissions there will be more"
@@ -481,7 +481,7 @@ async def test_list_permissions_with_overriden_extra_properties(
481481 data , error = await assert_status (resp , expected_response )
482482 assert data
483483 assert not error
484- list_of_permissions = TypeAdapter (list [PermissionGet ]).validate_python (data )
484+ list_of_permissions = TypeAdapter (list [MyPermissionGet ]).validate_python (data )
485485 filtered_permissions = list (
486486 filter (
487487 lambda x : x .name == "override_services_specifications" , list_of_permissions
You can’t perform that action at this time.
0 commit comments