def test_distribution_alert_raise_should_execute_at_midnight_every_day( self, mock_distribution_alert_raise): mock_distribution_alert_raise.return_value = None mock_distribution_alert_raise() MockPeriodicTask.assert_called_with(crontab(minute=0, hour=0))
def test_should_schedule_expire_runs_to_execute_at_midnight_every_day( self, mock_expire_overdue_runs): mock_expire_overdue_runs.return_value = None mock_expire_overdue_runs() MockPeriodicTask.assert_called_with(crontab(minute=0, hour=0))
def test_execute_csv_clear_task_should_execute_every_30_inutes(self, mock_execute_csv_clear_task): mock_execute_csv_clear_task.return_value = None mock_execute_csv_clear_task() MockPeriodicTask.assert_called_with(crontab(minute="*/30"))
def test_should_schedule_expire_runs_to_execute_at_midnight_every_day(self, mock_expire_overdue_runs): mock_expire_overdue_runs.return_value = None mock_expire_overdue_runs() MockPeriodicTask.assert_called_with(crontab(minute=0, hour=0))
def test_execute_csv_clear_task_should_execute_every_30_inutes( self, mock_execute_csv_clear_task): mock_execute_csv_clear_task.return_value = None mock_execute_csv_clear_task() MockPeriodicTask.assert_called_with(crontab(minute="*/30"))
def test_distribution_alert_raise_should_execute_at_midnight_every_day(self, mock_distribution_alert_raise): mock_distribution_alert_raise.return_value = None mock_distribution_alert_raise() MockPeriodicTask.assert_called_with(crontab(minute=0, hour=0))