File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
services/web/server/tests/unit/with_dbs/03 Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 77from typing import Annotated
88
99from fastapi import APIRouter , Depends , status
10+ from models_library .api_schemas_webserver .users import ProfileGet , ProfileUpdate
1011from models_library .api_schemas_webserver .users_preferences import PatchRequestBody
1112from models_library .generics import Envelope
1213from models_library .user_preferences import PreferenceIdentifier
2425from simcore_service_webserver .users ._tokens_handlers import _TokenPathParams
2526from simcore_service_webserver .users .schemas import (
2627 PermissionGet ,
27- ProfileGet ,
28- ProfileUpdate ,
2928 ThirdPartyToken ,
3029 TokenCreate ,
3130)
Original file line number Diff line number Diff line change 99import pytest
1010from aiohttp .test_utils import TestClient
1111from faker import Faker
12+ from models_library .api_schemas_webserver .users import ProfileGet
1213from models_library .products import ProductName
1314from pytest_mock import MockerFixture
1415from pytest_simcore .helpers .assert_checks import assert_error , assert_status
3132 get_plugin_settings ,
3233)
3334from simcore_service_webserver .login .storage import AsyncpgStorage
34- from simcore_service_webserver .users .schemas import ProfileGet
3535
3636
3737@pytest .fixture
Original file line number Diff line number Diff line change 1818from aiopg .sa .connection import SAConnection
1919from faker import Faker
2020from models_library .api_schemas_webserver .auth import AccountRequestInfo
21+ from models_library .api_schemas_webserver .users import ProfileGet
2122from models_library .generics import Envelope
2223from psycopg2 import OperationalError
2324from pytest_simcore .helpers .assert_checks import assert_status
3839 PreUserProfile ,
3940 UserProfile ,
4041)
41- from simcore_service_webserver .users .schemas import ProfileGet
4242
4343
4444@pytest .fixture
@@ -210,7 +210,7 @@ async def test_profile_workflow(
210210 json = {
211211 "first_name" : "Odei" , # NOTE: still not camecase!
212212 "userName" : "odei123" ,
213- "privacy" : {"hide_fullname " : False },
213+ "privacy" : {"hideFullname " : False },
214214 },
215215 )
216216 await assert_status (resp , status .HTTP_204_NO_CONTENT )
You can’t perform that action at this time.
0 commit comments