Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Dec 11, 2024
1 parent 35e3ff2 commit 8e3bedb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import pytest
import redis.asyncio as aioredis
from aiohttp.test_utils import TestClient
from models_library.api_schemas_webserver.schemas import PermissionGet
from models_library.api_schemas_webserver.users import MyPermissionGet
from models_library.products import ProductName
from pydantic import TypeAdapter
from pytest_simcore.helpers.assert_checks import assert_status
Expand Down Expand Up @@ -450,7 +450,7 @@ async def test_list_permissions(
data, error = await assert_status(resp, expected_response)
if data:
assert not error
list_of_permissions = TypeAdapter(list[PermissionGet]).validate_python(data)
list_of_permissions = TypeAdapter(list[MyPermissionGet]).validate_python(data)
assert (
len(list_of_permissions) == 1
), "for now there is only 1 permission, but when we sync frontend/backend permissions there will be more"
Expand Down Expand Up @@ -481,7 +481,7 @@ async def test_list_permissions_with_overriden_extra_properties(
data, error = await assert_status(resp, expected_response)
assert data
assert not error
list_of_permissions = TypeAdapter(list[PermissionGet]).validate_python(data)
list_of_permissions = TypeAdapter(list[MyPermissionGet]).validate_python(data)
filtered_permissions = list(
filter(
lambda x: x.name == "override_services_specifications", list_of_permissions
Expand Down

0 comments on commit 8e3bedb

Please sign in to comment.