예제 #1
0
    def test_appsupport(self):
        ids = Addon.objects.values_list('id', flat=True)
        cron.update_appsupport(ids)
        assert AppSupport.objects.filter(app=amo.FIREFOX.id).count() == 3  # ??

        # Run it again to test deletes.
        cron.update_appsupport(ids)
        assert AppSupport.objects.filter(app=amo.FIREFOX.id).count() == 3  # ??
예제 #2
0
파일: test_cron.py 프로젝트: diox/olympia
    def test_appsupport(self):
        ids = Addon.objects.values_list('id', flat=True)
        cron.update_appsupport(ids)
        assert AppSupport.objects.filter(app=amo.FIREFOX.id).count() == 3  # ??

        # Run it again to test deletes.
        cron.update_appsupport(ids)
        assert AppSupport.objects.filter(app=amo.FIREFOX.id).count() == 3  # ??