File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
services/web/server/tests/unit/with_dbs/03/invitations Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments