Skip to content

Commit

Permalink
fix: debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin committed Apr 9, 2024
1 parent cc1e7c1 commit 4e9cc43
Showing 1 changed file with 8 additions and 48 deletions.
56 changes: 8 additions & 48 deletions portal/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,56 +912,16 @@ def send_verify_email_reminder(
mock_send_dotdigital_email.reset_mock()

def test_first_verify_email_reminder_view(self):
self.send_verify_email_reminder(
days=6,
is_verified=False,
view_name="first-verify-email-reminder",
assert_called=False,
)
self.send_verify_email_reminder(
days=7,
is_verified=False,
view_name="first-verify-email-reminder",
assert_called=True,
)
self.send_verify_email_reminder(
days=7,
is_verified=True,
view_name="first-verify-email-reminder",
assert_called=False,
)
self.send_verify_email_reminder(
days=8,
is_verified=False,
view_name="first-verify-email-reminder",
assert_called=False,
)
self.send_verify_email_reminder(6, False, "first-verify-email-reminder", False)
self.send_verify_email_reminder(7, False, "first-verify-email-reminder", True)
self.send_verify_email_reminder(7, True, "first-verify-email-reminder", False)
self.send_verify_email_reminder(8, False, "first-verify-email-reminder", False)

def test_second_verify_email_reminder_view(self):
self.send_verify_email_reminder(
days=13,
is_verified=False,
view_name="second-verify-email-reminder",
assert_called=False,
)
self.send_verify_email_reminder(
days=14,
is_verified=False,
view_name="second-verify-email-reminder",
assert_called=True,
)
self.send_verify_email_reminder(
days=14,
is_verified=True,
view_name="second-verify-email-reminder",
assert_called=False,
)
self.send_verify_email_reminder(
days=15,
is_verified=False,
view_name="second-verify-email-reminder",
assert_called=False,
)
self.send_verify_email_reminder(13, False, "second-verify-email-reminder", False)
self.send_verify_email_reminder(14, False, "second-verify-email-reminder", True)
self.send_verify_email_reminder(14, True, "second-verify-email-reminder", False)
self.send_verify_email_reminder(15, False, "second-verify-email-reminder", False)

def test_anonymise_unverified_accounts_view(self):
now = timezone.now()
Expand Down

0 comments on commit 4e9cc43

Please sign in to comment.