예제 #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)
예제 #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)
예제 #3
0
 def handle(self, *args, **options):
     notify_users_of_todays_predictions()
예제 #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()
예제 #5
0
 def test_gameshow_is_found(self, gameshow_objects):
     notify_users_of_todays_predictions()
     gameshow_objects.current.assert_called_with()
예제 #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()
예제 #7
0
 def test_gameshow_is_found(self, gameshow_objects):
     notify_users_of_todays_predictions()
     gameshow_objects.current.assert_called_with()
예제 #8
0
 def handle(self, *args, **options):
     notify_users_of_todays_predictions()