Skip to content

Commit

Permalink
testing some changes to the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin committed May 3, 2024
1 parent e3961b3 commit 08f03a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfl_common/common/tests/utils/teacher.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def signup_teacher_directly(preverified=True, **kwargs):
return email_address, password


@patch("common.helpers.emails.send_dotdigital_email")
def signup_duplicate_teacher_fail(page, mock_send_dotdigital_email, duplicate_email=None):
@patch("portal.views.home.send_dotdigital_email")
def signup_duplicate_teacher_fail(page, mock_send_dotdigital_email: Mock, duplicate_email=None):
page = page.go_to_signup_page()

first_name, last_name, email_address, password = generate_details()
Expand Down
2 changes: 2 additions & 0 deletions portal/tests/test_independent_student.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ def test_signup_duplicate_email_failure(self, mock_send_dotdigital_email: Mock):
page, _, _, email, _ = create_independent_student(page)
assert is_email_verified_message_showing(self.selenium)

mock_send_dotdigital_email.assert_called()

login_link = mock_send_dotdigital_email.call_args.kwargs["personalization_values"]["LOGIN_URL"]

page = self.go_to_homepage()
Expand Down

0 comments on commit 08f03a6

Please sign in to comment.