mirror of
https://github.com/django/django.git
synced 2024-11-30 23:20:50 +01:00
Added test for handling of non-existent manifest in ManifestFilesMixin.read_manifest().
This commit is contained in:
parent
d14fa04ab3
commit
246689452d
@ -385,6 +385,10 @@ class TestCollectionManifestStorage(TestHashedFiles, CollectionTestCase):
|
|||||||
path = storage.staticfiles_storage.path(filename)
|
path = storage.staticfiles_storage.path(filename)
|
||||||
self.assertTrue(os.path.exists(path))
|
self.assertTrue(os.path.exists(path))
|
||||||
|
|
||||||
|
def test_manifest_does_not_exist(self):
|
||||||
|
storage.staticfiles_storage.manifest_name = 'does.not.exist.json'
|
||||||
|
self.assertIsNone(storage.staticfiles_storage.read_manifest())
|
||||||
|
|
||||||
def test_loaded_cache(self):
|
def test_loaded_cache(self):
|
||||||
self.assertNotEqual(storage.staticfiles_storage.hashed_files, {})
|
self.assertNotEqual(storage.staticfiles_storage.hashed_files, {})
|
||||||
manifest_content = storage.staticfiles_storage.read_manifest()
|
manifest_content = storage.staticfiles_storage.read_manifest()
|
||||||
|
Loading…
Reference in New Issue
Block a user