Included the default serviceworker, updated the manifest, Add the default offline page, updated the unit test, Redme
This commit is contained in:
@@ -41,3 +41,13 @@ class ManifestTest(TestCase):
|
||||
for expected in contents:
|
||||
with self.subTest():
|
||||
self.assertContains(self.response, expected)
|
||||
|
||||
|
||||
class OfflineTest(TestCase):
|
||||
def setUp(self):
|
||||
self.response = self.client.get(r('offline'))
|
||||
|
||||
def test_get(self):
|
||||
"""GET /offline Should return status code 200"""
|
||||
self.assertEqual(200, self.response.status_code)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user