Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DeD1rk committed Dec 12, 2023
1 parent 225db49 commit 96a6c36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/members/tests/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_process_email_change(self, send_message_mock):
send_message_mock.assert_called_once_with(change_request)


@freeze_time("2018-10-2")
@freeze_time("2018-12-2")
@override_settings(SUSPEND_SIGNALS=True)
class DataMinimisationTest(TestCase):
@classmethod
Expand Down Expand Up @@ -114,12 +114,12 @@ def setUpTestData(cls):
)

def test_removes_after_31_days_or_no_membership(self):
with self.subTest("Deletes after 31 days"):
with self.subTest("Deletes after 90 days"):
processed = services.execute_data_minimisation(True)
self.assertEqual(len(processed), 2)
self.assertEqual(processed[0], self.m1)

with self.subTest("Deletes after 31 days"):
with self.subTest("Deletes after 90 days"):
self.s1.until = timezone.now().replace(year=2018, month=11, day=1)
self.s1.save()
processed = services.execute_data_minimisation(True)
Expand Down

0 comments on commit 96a6c36

Please sign in to comment.