示例#1
0
 def test_send_tarako_mail_review_failed(self):
     ok_(not self.send_mail.called)
     self.review.passed = False
     send_tarako_mail(self.review)
     self.send_mail.assert_called_with(
         'Low-memory devices review failed',
         'reviewers/emails/tarako_review_complete.txt',
         {'review': self.review},
         recipient_list=[u'*****@*****.**'],
         from_email=settings.MKT_REVIEWERS_EMAIL)
示例#2
0
 def test_send_tarako_mail_review_failed(self):
     ok_(not self.send_mail.called)
     self.review.passed = False
     send_tarako_mail(self.review)
     self.send_mail.assert_called_with(
         'Low-memory devices review failed',
         'reviewers/emails/tarako_review_complete.txt',
         {'review': self.review},
         recipient_list=[u'*****@*****.**'],
         from_email=settings.MKT_REVIEWERS_EMAIL)
示例#3
0
 def test_send_tarako_mail_failed_comm_dashboard(self):
     self.create_switch('comm-dashboard')
     ok_(not self.send_mail.called)
     self.review.passed = False
     send_tarako_mail(self.review)
     ok_(not self.send_mail.called)
示例#4
0
 def test_send_tarako_mail_failed_comm_dashboard(self):
     self.enable_comm_dashboard()
     ok_(not self.send_mail.called)
     self.review.passed = False
     send_tarako_mail(self.review)
     ok_(not self.send_mail.called)
示例#5
0
 def test_send_tarako_mail_failed_comm_dashboard(self):
     self.create_switch('comm-dashboard')
     ok_(not self.send_mail.called)
     self.review.passed = False
     send_tarako_mail(self.review)
     ok_(not self.send_mail.called)