def test_no_two_emails_to_same_person(self, mock_send):
     user = UserFactory()
     user.osf_mailing_lists[settings.OSF_HELP_LIST] = True
     user.save()
     self.queue_mail(user=user)
     self.queue_mail(user=user)
     main(dry_run=False)
     assert_equal(mock_send.call_count, 1)
Exemplo n.º 2
0
 def test_no_two_emails_to_same_person(self, mock_send):
     user = UserFactory()
     user.osf_mailing_lists[settings.OSF_HELP_LIST] = True
     user.save()
     self.queue_mail(user=user)
     self.queue_mail(user=user)
     main(dry_run=False)
     assert_equal(mock_send.call_count, 1)
 def test_queue_addon_mail(self, mock_send):
     self.queue_mail()
     main(dry_run=False)
     assert_true(mock_send.called)
Exemplo n.º 4
0
 def test_queue_addon_mail(self, mock_send):
     self.queue_mail()
     main(dry_run=False)
     assert_true(mock_send.called)