From 296d1cf3d4fd4bac37682b4548a9d930cce6958f Mon Sep 17 00:00:00 2001 From: Eve Martin Date: Thu, 4 Apr 2024 14:26:13 +0000 Subject: [PATCH] fix: debug tests --- portal/tests/test_independent_student.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/portal/tests/test_independent_student.py b/portal/tests/test_independent_student.py index 8252df42a..e994083c9 100644 --- a/portal/tests/test_independent_student.py +++ b/portal/tests/test_independent_student.py @@ -406,8 +406,9 @@ def test_change_email(self, mock_send_dotdigital_email): page = page.logout() mock_send_dotdigital_email.assert_called_with(1551594, ANY, personalization_values=ANY) + verification_url = mock_send_dotdigital_email.call_args.kwargs["personalization_values"]["VERIFICATION_LINK"] - page = email_utils.follow_change_email_link_to_independent_dashboard(page, mail.outbox[1]) + page = email_utils.follow_change_email_link_to_independent_dashboard(page, verification_url) page = page.independent_student_login(new_email, password)