def test_cron(self): assert GroupedRating.get(self.addon.pk, update_none=False) is None tasks.addon_grouped_rating(self.addon.pk) assert GroupedRating.get(self.addon.pk, update_none=False) == ( self.expected_grouped_rating)
def test_cron(self): assert GroupedRating.get(1865, update_none=False) is None tasks.addon_grouped_rating(1865) assert GroupedRating.get(1865, update_none=False) == (self.grouped_ratings)
def test_cron(self): eq_(GroupedRating.get(1865, update_none=False), None) tasks.addon_grouped_rating(1865) eq_(GroupedRating.get(1865, update_none=False), self.grouped_ratings)
def test_cron(self): assert GroupedRating.get(1865, update_none=False) is None tasks.addon_grouped_rating(1865) assert GroupedRating.get(1865, update_none=False) == ( self.grouped_ratings)
def test_cron(self): assert GroupedRating.get(self.addon.pk, update_none=False) is None tasks.addon_grouped_rating(self.addon.pk) assert GroupedRating.get( self.addon.pk, update_none=False) == (self.expected_grouped_rating)