tests to the news manifest options
This commit is contained in:
@@ -3,6 +3,6 @@ from .views import manifest, service_worker
|
|||||||
|
|
||||||
# Serve up serviceworker.js and manifest.json at the root
|
# Serve up serviceworker.js and manifest.json at the root
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url('^serviceworker.js$', service_worker),
|
url('^serviceworker.js$', service_worker, name="serviceworker"),
|
||||||
url('^manifest.json$', manifest)
|
url('^manifest.json$', manifest, name="manifest")
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -14,7 +14,9 @@ class AppSettingsTest(TestCase):
|
|||||||
'PWA_APP_BACKGROUND_COLOR',
|
'PWA_APP_BACKGROUND_COLOR',
|
||||||
'PWA_APP_DISPLAY',
|
'PWA_APP_DISPLAY',
|
||||||
'PWA_APP_START_URL',
|
'PWA_APP_START_URL',
|
||||||
'PWA_APP_ICONS'
|
'PWA_APP_ICONS',
|
||||||
|
'PWA_APP_DIR',
|
||||||
|
'PWA_APP_LANG'
|
||||||
]
|
]
|
||||||
for attr in attributes:
|
for attr in attributes:
|
||||||
with self.subTest():
|
with self.subTest():
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ class ManifestTest(TestCase):
|
|||||||
'"background_color":',
|
'"background_color":',
|
||||||
'"theme_color":',
|
'"theme_color":',
|
||||||
'"icons":',
|
'"icons":',
|
||||||
|
'"dir":',
|
||||||
|
'"lang":'
|
||||||
]
|
]
|
||||||
for expected in contents:
|
for expected in contents:
|
||||||
with self.subTest():
|
with self.subTest():
|
||||||
|
|||||||
Reference in New Issue
Block a user