def test_appsupport_seamonkey(self):
     addon = Addon.objects.get(pk=15663)
     addon.update(status=amo.STATUS_PUBLIC)
     AppSupport.objects.all().delete()
     cron.update_addon_appsupport()
     assert AppSupport.objects.filter(
         addon=15663, app=amo.SEAMONKEY.id).count() == 1
 def test_appsupport_seamonkey(self):
     addon = Addon.objects.get(pk=15663)
     addon.update(status=amo.STATUS_PUBLIC)
     AppSupport.objects.all().delete()
     cron.update_addon_appsupport()
     assert AppSupport.objects.filter(addon=15663,
                                      app=amo.SEAMONKEY.id).count() == 1
Beispiel #3
0
 def test_appsupport_listed(self):
     AppSupport.objects.all().delete()
     eq_(AppSupport.objects.filter(addon=3723).count(), 0)
     cron.update_addon_appsupport()
     eq_(
         AppSupport.objects.filter(addon=3723, app=amo.FIREFOX.id).count(),
         0)
 def test_appsupport_listed(self):
     AppSupport.objects.all().delete()
     assert AppSupport.objects.filter(addon=3723).count() == 0
     cron.update_addon_appsupport()
     assert AppSupport.objects.filter(
         addon=3723, app=amo.FIREFOX.id).count() == 0