Skip to content

Commit ffe4ebf

Browse files
committed
minor
1 parent 4ed3e04 commit ffe4ebf

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

api/specs/web-server/_users.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from typing import Annotated
88

99
from fastapi import APIRouter, Depends, status
10+
from models_library.api_schemas_webserver.users import ProfileGet, ProfileUpdate
1011
from models_library.api_schemas_webserver.users_preferences import PatchRequestBody
1112
from models_library.generics import Envelope
1213
from models_library.user_preferences import PreferenceIdentifier
@@ -24,8 +25,6 @@
2425
from simcore_service_webserver.users._tokens_handlers import _TokenPathParams
2526
from simcore_service_webserver.users.schemas import (
2627
PermissionGet,
27-
ProfileGet,
28-
ProfileUpdate,
2928
ThirdPartyToken,
3029
TokenCreate,
3130
)

services/web/server/tests/unit/with_dbs/03/login/test_login_registration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import pytest
1010
from aiohttp.test_utils import TestClient
1111
from faker import Faker
12+
from models_library.api_schemas_webserver.users import ProfileGet
1213
from models_library.products import ProductName
1314
from pytest_mock import MockerFixture
1415
from pytest_simcore.helpers.assert_checks import assert_error, assert_status
@@ -31,7 +32,6 @@
3132
get_plugin_settings,
3233
)
3334
from simcore_service_webserver.login.storage import AsyncpgStorage
34-
from simcore_service_webserver.users.schemas import ProfileGet
3535

3636

3737
@pytest.fixture

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from aiopg.sa.connection import SAConnection
1919
from faker import Faker
2020
from models_library.api_schemas_webserver.auth import AccountRequestInfo
21+
from models_library.api_schemas_webserver.users import ProfileGet
2122
from models_library.generics import Envelope
2223
from psycopg2 import OperationalError
2324
from pytest_simcore.helpers.assert_checks import assert_status
@@ -38,7 +39,6 @@
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)

0 commit comments

Comments
 (0)