示例#1
0
 def test_signals(self, mock):
     EscalationQueue.objects.create(addon=self.app)
     assert mock.called
     mock.reset()
     EscalationQueue.objects.filter(addon=self.app).delete()
     assert mock.called
示例#2
0
 def test_signals(self, mock):
     EscalationQueue.objects.create(addon=self.app)
     assert mock.called
     mock.reset()
     EscalationQueue.objects.filter(addon=self.app).delete()
     assert mock.called
示例#3
0
 def test_signals(self, mock):
     RereviewQueue.flag(self.app, mkt.LOG.REREVIEW_PREMIUM_TYPE_UPGRADE)
     assert mock.called
     mock.reset()
     RereviewQueue.objects.filter(addon=self.app).delete()
     assert mock.called
示例#4
0
 def test_signals(self, mock):
     RereviewQueue.flag(self.app, mkt.LOG.REREVIEW_PREMIUM_TYPE_UPGRADE)
     assert mock.called
     mock.reset()
     RereviewQueue.objects.filter(addon=self.app).delete()
     assert mock.called