From 0aa6d29fe9a70813f5162ff5a70abcf3014a3809 Mon Sep 17 00:00:00 2001 From: Eve Martin Date: Thu, 4 Apr 2024 09:21:02 +0000 Subject: [PATCH] fix: fix package names --- portal/tests/test_independent_student.py | 2 +- portal/tests/test_ratelimit.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/portal/tests/test_independent_student.py b/portal/tests/test_independent_student.py index 4ec9951a6..6e5a1be6e 100644 --- a/portal/tests/test_independent_student.py +++ b/portal/tests/test_independent_student.py @@ -138,7 +138,7 @@ def test_signup_invalid_name_fails(self): # Assert response isn't a redirect (submit failure) assert response.status_code == 200 - @patch("common.emails.send_dotdigital_email") + @patch("common.helpers.emails.send_dotdigital_email") def test_signup_under_13_sends_parent_email(self, mock_send_dotdigital_email: Mock): c = Client() diff --git a/portal/tests/test_ratelimit.py b/portal/tests/test_ratelimit.py index 96b2013ac..7d2e856b9 100644 --- a/portal/tests/test_ratelimit.py +++ b/portal/tests/test_ratelimit.py @@ -434,7 +434,7 @@ def test_lockout_reset_tracking(self): @pytest.mark.django_db -@patch("common.emails.send_dotdigital_email") +@patch("common.helpers.emails.send_dotdigital_email") def test_teacher_already_registered_email(client, mock_send_dotdigital_email: Mock): first_name, last_name, email, password = generate_details() register_url = reverse("register") @@ -462,7 +462,7 @@ def test_teacher_already_registered_email(client, mock_send_dotdigital_email: Mo @pytest.mark.django_db -@patch("common.emails.send_dotdigital_email") +@patch("common.helpers.emails.send_dotdigital_email") def test_independent_student_already_registered_email(client, mock_send_dotdigital_email: Mock): name, username, email_address, password = generate_independent_student_details() register_url = reverse("register")