Exemple #1
0
 def test_tarako_failed_reindexes_the_app(self):
     ok_(not self.index.called)
     tarako_failed(self.review)
     self.index.assert_called_with([self.app.pk])
Exemple #2
0
 def test_tarako_failed_removes_tarako_tag(self):
     self.tag.save_tag(self.app)
     ok_(self.has_tag(), 'expected the tarako tag')
     tarako_failed(self.review)
     ok_(not self.has_tag(), 'expected no tarako tag')
 def test_tarako_failed_sends_tarako_mail(self):
     ok_(not self.send_tarako_mail.called)
     tarako_failed(self.review)
     self.send_tarako_mail.assert_called_with(self.review)
Exemple #4
0
 def test_tarako_failed_reindexes_the_app(self):
     ok_(not self.index.called)
     tarako_failed(self.review)
     self.index.assert_called_with([self.app.pk])
Exemple #5
0
 def test_tarako_failed_removes_tarako_tag(self):
     self.tag.save_tag(self.app)
     ok_(self.has_tag(), 'expected the tarako tag')
     tarako_failed(self.review)
     ok_(not self.has_tag(), 'expected no tarako tag')
Exemple #6
0
 def test_tarako_failed_sends_tarako_mail(self):
     ok_(not self.send_tarako_mail.called)
     tarako_failed(self.review)
     self.send_tarako_mail.assert_called_with(self.review)