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
|
||||
urlpatterns = [
|
||||
url('^serviceworker.js$', service_worker),
|
||||
url('^manifest.json$', manifest)
|
||||
url('^serviceworker.js$', service_worker, name="serviceworker"),
|
||||
url('^manifest.json$', manifest, name="manifest")
|
||||
]
|
||||
|
||||
@@ -14,7 +14,9 @@ class AppSettingsTest(TestCase):
|
||||
'PWA_APP_BACKGROUND_COLOR',
|
||||
'PWA_APP_DISPLAY',
|
||||
'PWA_APP_START_URL',
|
||||
'PWA_APP_ICONS'
|
||||
'PWA_APP_ICONS',
|
||||
'PWA_APP_DIR',
|
||||
'PWA_APP_LANG'
|
||||
]
|
||||
for attr in attributes:
|
||||
with self.subTest():
|
||||
|
||||
@@ -34,6 +34,8 @@ class ManifestTest(TestCase):
|
||||
'"background_color":',
|
||||
'"theme_color":',
|
||||
'"icons":',
|
||||
'"dir":',
|
||||
'"lang":'
|
||||
]
|
||||
for expected in contents:
|
||||
with self.subTest():
|
||||
|
||||
Reference in New Issue
Block a user