Skip to content

Commit 7fc643f

Browse files
modify test
1 parent aba79d8 commit 7fc643f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

services/web/server/tests/unit/with_dbs/03/invitations/test_products_rest_invitations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
(UserRole.USER, status.HTTP_403_FORBIDDEN),
3535
(UserRole.TESTER, status.HTTP_403_FORBIDDEN),
3636
(UserRole.PRODUCT_OWNER, status.HTTP_200_OK),
37-
(UserRole.ADMIN, status.HTTP_403_FORBIDDEN),
37+
(UserRole.ADMIN, status.HTTP_200_OK),
3838
],
3939
)
4040
async def test_role_access_to_generate_invitation(

services/web/server/tests/unit/with_dbs/03/invitations/test_users_accounts_rest_registration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@ async def mock_send_message(msg):
9595
*(
9696
(role, status.HTTP_403_FORBIDDEN)
9797
for role in UserRole
98-
if role not in {UserRole.PRODUCT_OWNER, UserRole.ANONYMOUS}
98+
if role not in {UserRole.PRODUCT_OWNER, UserRole.ADMIN, UserRole.ANONYMOUS}
9999
),
100100
(UserRole.PRODUCT_OWNER, status.HTTP_200_OK),
101+
(UserRole.ADMIN, status.HTTP_200_OK),
101102
],
102103
)
103104
async def test_access_rights_on_search_users_only_product_owners_can_access(

0 commit comments

Comments
 (0)