Added packaged manifest to whitelists (bug 794355)
This commit is contained in:
Родитель
ce51578a4c
Коммит
0b05b24a51
|
@ -915,3 +915,17 @@ class TestPackagedManifest(DetailBase):
|
|||
eq_(data['package_path'], '%s%s' % (
|
||||
settings.SITE_URL, reverse('downloads.blocked_packaged_app')))
|
||||
assert data['release_notes'].startswith(u'This app has been blocked')
|
||||
|
||||
@mock.patch.object(settings, 'MIDDLEWARE_CLASSES',
|
||||
settings.MIDDLEWARE_CLASSES + type(settings.MIDDLEWARE_CLASSES)([
|
||||
'amo.middleware.NoConsumerMiddleware',
|
||||
'amo.middleware.LoginRequiredMiddleware'
|
||||
])
|
||||
)
|
||||
@mock.patch('mkt.webapps.models.Webapp.get_cached_manifest')
|
||||
def test_logged_out(self, _mock):
|
||||
_mock.return_value = self._mocked_json()
|
||||
self.client.logout()
|
||||
res = self.client.get(self.url)
|
||||
eq_(res.status_code, 200)
|
||||
eq_(res['Content-type'], 'application/x-web-app-manifest+json')
|
||||
|
|
|
@ -177,7 +177,11 @@ NO_CONSUMER_MODULES = (
|
|||
'versions.views',
|
||||
'mkt.account.views',
|
||||
'mkt.browse.views',
|
||||
'mkt.detail.views',
|
||||
'mkt.detail.views.detail',
|
||||
'mkt.detail.views.detail.abuse',
|
||||
'mkt.detail.views.detail.abuse.recaptcha',
|
||||
'mkt.detail.views.detail.privacy',
|
||||
'mkt.detail.views.app_activity',
|
||||
'mkt.ratings.views',
|
||||
'mkt.payments.views',
|
||||
'mkt.stats.views',
|
||||
|
@ -190,6 +194,7 @@ NO_CONSUMER_MODULES = (
|
|||
NO_LOGIN_REQUIRED_MODULES = (
|
||||
'csp.views.policy',
|
||||
'csp.views.report',
|
||||
'mkt.detail.views.manifest',
|
||||
'mkt.developers',
|
||||
'mkt.lookup',
|
||||
'mkt.reviewers',
|
||||
|
@ -304,6 +309,7 @@ APPCACHE_FALLBACK_PATHS = {
|
|||
# If you use wildcards here the real paths to the file(s) will be
|
||||
# expanded using glob.glob()
|
||||
|
||||
|
||||
def APPCACHE_MEDIA_TO_CACHE():
|
||||
from jingo_minify import helpers
|
||||
return [
|
||||
|
|
Загрузка…
Ссылка в новой задаче