tests to the news manifest options

This commit is contained in:
Silvio Leite
2018-08-14 10:41:00 -03:00
parent 02e7f914e3
commit fbad2744e1
3 changed files with 7 additions and 3 deletions

View File

@@ -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")
] ]

View File

@@ -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():

View File

@@ -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():