Skip to content

Commit 6bd9211

Browse files
committed
fixes tests
1 parent fa251a6 commit 6bd9211

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ async def test_reject_user_account(
466466
rejection_msg = mock_email_session.sent_messages[0]
467467

468468
# Verify email recipients and content
469-
assert rejection_msg["To"] == pre_registered_email
470-
assert "rejected" in rejection_msg["Subject"].lower()
469+
assert pre_registered_email in rejection_msg["To"]
470+
assert "denied" in rejection_msg["Subject"].lower()
471471

472472
# 5. Verify the user is no longer in PENDING status
473473
url = client.app.router["list_users_accounts"].url_for()
@@ -565,8 +565,8 @@ async def test_approve_user_account_with_full_invitation_details(
565565
approval_msg = mock_email_session.sent_messages[0]
566566

567567
# Verify email recipients and content
568-
assert approval_msg["To"] == test_email
569-
assert "approved" in approval_msg["Subject"].lower()
568+
assert test_email in approval_msg["To"]
569+
assert "accepted" in approval_msg["Subject"].lower()
570570

571571
# 4. Verify the user account status and invitation data in extras
572572
resp = await client.get(

0 commit comments

Comments
 (0)