def test_appsupport(self): ids = Addon.objects.values_list('id', flat=True) cron._update_appsupport(ids) eq_(AppSupport.objects.filter(app=amo.FIREFOX.id).count(), 4) # Run it again to test deletes. cron._update_appsupport(ids) eq_(AppSupport.objects.filter(app=amo.FIREFOX.id).count(), 4)
def test_appsupport(self): ids = Addon.objects.values_list('id', flat=True) cron._update_appsupport(ids) eq_(AppSupport.objects.count(), 26) # Run it again to test deletes. cron._update_appsupport(ids) eq_(AppSupport.objects.count(), 26)
def test_appsupport(self): ids = Addon.objects.values_list('id', flat=True) cron._update_appsupport(ids) eq_(AppSupport.objects.count(), 2) # Run it again to test deletes. cron._update_appsupport(ids) eq_(AppSupport.objects.count(), 2)
def _pre_setup(self): super(ExtraSetup, self)._pre_setup() cron._update_appsupport(Addon.objects.values_list('id', flat=True)) cron._update_addons_current_version(Addon.objects.values_list('id')) cache.clear()