diff --git a/cl/alerts/tests/tests_recap_alerts.py b/cl/alerts/tests/tests_recap_alerts.py index a661347975..2211131093 100644 --- a/cl/alerts/tests/tests_recap_alerts.py +++ b/cl/alerts/tests/tests_recap_alerts.py @@ -1608,7 +1608,11 @@ def test_schedule_wly_and_mly_recap_alerts(self) -> None: self.assertIn(self.rd.description, txt_email) # Send scheduled Monthly alerts and check assertions. - call_command("cl_send_scheduled_alerts", rate=Alert.MONTHLY) + current_date = now().replace( + day=28, hour=0 + ) + with time_machine.travel(current_date, tick=False): + call_command("cl_send_scheduled_alerts", rate=Alert.MONTHLY) self.assertEqual( len(mail.outbox), 2, msg="Outgoing emails don't match." )