fix tests
This commit is contained in:
Родитель
c2a124e777
Коммит
dd8e7790c8
|
@ -767,8 +767,11 @@ class Addon(amo.models.OnChangeMixin, amo.models.ModelBase):
|
|||
addon_p.price = price
|
||||
addon_dict[addon_p.addon_id]._premium = addon_p
|
||||
|
||||
# Attach counts for add-on compatibility reports.
|
||||
CompatReport.transformer(non_apps)
|
||||
# This isn't cheating, right? I don't want to add `compat` to
|
||||
# market's INSTALLED_APPS.
|
||||
if not settings.MARKETPLACE:
|
||||
# Attach counts for add-on compatibility reports.
|
||||
CompatReport.transformer(non_apps)
|
||||
|
||||
return addon_dict
|
||||
|
||||
|
|
|
@ -504,7 +504,7 @@ class APITest(TestCase):
|
|||
'<thumbnail type="" width="200" height="150">')
|
||||
|
||||
def test_performance_data(self):
|
||||
with self.assertNumQueries(27):
|
||||
with self.assertNumQueries(28):
|
||||
response = self.client.get('/en-US/firefox/api/%.1f/addon/3615' %
|
||||
api.CURRENT_VERSION)
|
||||
doc = pq(response.content)
|
||||
|
|
Загрузка…
Ссылка в новой задаче