Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 def handle(self, *args, **options):
     notify_users_of_todays_predictions()
Esempio n. 4
0
 def test_users_are_found(self, gameshow_objects):
     gameshow = gameshow_objects.current()
     notify_users_of_todays_predictions()
     gameshow.users.all.assert_called_with()
Esempio n. 5
0
 def test_gameshow_is_found(self, gameshow_objects):
     notify_users_of_todays_predictions()
     gameshow_objects.current.assert_called_with()
Esempio n. 6
0
 def test_users_are_found(self, gameshow_objects):
     gameshow = gameshow_objects.current()
     notify_users_of_todays_predictions()
     gameshow.users.all.assert_called_with()
Esempio n. 7
0
 def test_gameshow_is_found(self, gameshow_objects):
     notify_users_of_todays_predictions()
     gameshow_objects.current.assert_called_with()
Esempio n. 8
0
 def handle(self, *args, **options):
     notify_users_of_todays_predictions()