def test_reminders_are_sent(self, gameshow_objects): gameshow = gameshow_objects.current() predictions = gameshow.todays_predictions() users = gameshow.users.all() with patch('gameshow.tasks.send_prediction_reminder_emails') as send_emails: notify_users_of_todays_predictions() send_emails.assert_called_with(predictions, users)
def test_reminders_are_sent(self, gameshow_objects): gameshow = gameshow_objects.current() predictions = gameshow.todays_predictions() users = gameshow.users.all() with patch('gameshow.tasks.send_prediction_reminder_emails' ) as send_emails: notify_users_of_todays_predictions() send_emails.assert_called_with(predictions, users)
def handle(self, *args, **options): notify_users_of_todays_predictions()
def test_users_are_found(self, gameshow_objects): gameshow = gameshow_objects.current() notify_users_of_todays_predictions() gameshow.users.all.assert_called_with()
def test_gameshow_is_found(self, gameshow_objects): notify_users_of_todays_predictions() gameshow_objects.current.assert_called_with()