Example #1
0
 def test_notify_failure_lang(self):
     user1 = UserProfile.objects.get(pk=999)
     user2 = UserProfile.objects.get(pk=10482)
     AddonUser.objects.create(addon=self.addon, user=user2)
     user1.update(lang='de')
     user2.update(lang='en')
     notify_developers_of_failure(self.addon, 'blah')
     eq_(len(mail.outbox), 2)
     ok_(u'Mozilla Kugel' in mail.outbox[0].subject)
     ok_(u'MozillaBall' in mail.outbox[1].subject)
Example #2
0
 def test_notify_failure_lang(self):
     user1 = UserProfile.objects.get(pk=999)
     user2 = UserProfile.objects.get(pk=10482)
     AddonUser.objects.create(addon=self.addon, user=user2)
     user1.update(lang='de')
     user2.update(lang='en')
     notify_developers_of_failure(self.addon, 'blah')
     eq_(len(mail.outbox), 2)
     ok_(u'Mozilla Kugel' in mail.outbox[0].subject)
     ok_(u'MozillaBall' in mail.outbox[1].subject)
Example #3
0
 def test_notify_failure_lang(self):
     user1 = UserProfile.objects.get(pk=999)
     user2 = UserProfile.objects.get(pk=2519)
     AddonUser.objects.create(addon=self.addon, user=user2)
     user1.update(lang="de")
     user2.update(lang="en")
     notify_developers_of_failure(self.addon, "blah")
     eq_(len(mail.outbox), 2)
     ok_(u"Mozilla Kugel" in mail.outbox[0].subject)
     ok_(u"MozillaBall" in mail.outbox[1].subject)
Example #4
0
 def test_notify_failure_not_public(self):
     self.addon.update(status=amo.STATUS_PENDING)
     notify_developers_of_failure(self.addon, 'blah')
     eq_(len(mail.outbox), 0)
Example #5
0
 def test_notify_failure_with_rereview(self):
     RereviewQueue.flag(self.addon, amo.LOG.REREVIEW_MANIFEST_CHANGE,
                        'This app is flagged!')
     notify_developers_of_failure(self.addon, 'blah')
     eq_(len(mail.outbox), 0)
Example #6
0
 def test_notify_failure_not_public(self):
     self.addon.update(status=amo.STATUS_PENDING)
     notify_developers_of_failure(self.addon, 'blah')
     eq_(len(mail.outbox), 0)
Example #7
0
 def test_notify_failure_with_rereview(self):
     RereviewQueue.flag(self.addon, amo.LOG.REREVIEW_MANIFEST_CHANGE,
                        'This app is flagged!')
     notify_developers_of_failure(self.addon, 'blah')
     eq_(len(mail.outbox), 0)
Example #8
0
 def test_notify_failure_not_public(self):
     self.webapp.update(status=mkt.STATUS_PENDING)
     notify_developers_of_failure(self.webapp, 'blah')
     eq_(len(mail.outbox), 0)