Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 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)
Exemplo n.º 4
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