Skip to content

Commit 8e3bedb

Browse files
committed
fixes
1 parent 35e3ff2 commit 8e3bedb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/web/server/tests/unit/with_dbs/03/test_users__notifications.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import pytest
1818
import redis.asyncio as aioredis
1919
from 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
2121
from models_library.products import ProductName
2222
from pydantic import TypeAdapter
2323
from 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

0 commit comments

Comments
 (0)