Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 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)
Example #6
0
 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)