Skip to content

Commit c4213ef

Browse files
committed
fix: remove duplicate field in MyFunctionPermissionsGet and update test with invalid code
1 parent 6764706 commit c4213ef

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

packages/models-library/src/models_library/api_schemas_webserver/users.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,4 +408,3 @@ def from_domain_model(cls, permission: UserPermission) -> Self:
408408

409409
class MyFunctionPermissionsGet(OutputSchema):
410410
write_functions: bool
411-
write_functions: bool

services/web/server/src/simcore_service_webserver/users/_users_web.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
from aiohttp_session import Session
55
from models_library.users import UserID
6-
from servicelib.aiohttp import status
76

87
from .exceptions import (
98
PhoneRegistrationCodeInvalidError,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ async def test_phone_confirm_with_wrong_code(
879879
resp = await client.post(
880880
f"{url}",
881881
json={
882-
"code": "wrong_code",
882+
"code": "wrongcode1234",
883883
},
884884
)
885885
await assert_status(resp, status.HTTP_400_BAD_REQUEST)

0 commit comments

Comments
 (0)