Skip to content

Commit

Permalink
fix: rearrange decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin committed Apr 4, 2024
1 parent 9651a2a commit fcdf86d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portal/tests/test_ratelimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ def test_lockout_reset_tracking(self):
assert current_daily_activity.school_student_lockout_resets == 2


@pytest.mark.django_db
@patch("common.helpers.emails.send_dotdigital_email")
@pytest.mark.django_db
def test_teacher_already_registered_email(client, mock_send_dotdigital_email: Mock):
first_name, last_name, email, password = generate_details()
register_url = reverse("register")
Expand All @@ -461,8 +461,8 @@ def test_teacher_already_registered_email(client, mock_send_dotdigital_email: Mo
assert len(mail.outbox) == 1


@pytest.mark.django_db
@patch("common.helpers.emails.send_dotdigital_email")
@pytest.mark.django_db
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")
Expand Down

0 comments on commit fcdf86d

Please sign in to comment.