Ticket #26591: manifeststaticfilesstorage_test.patch

File manifeststaticfilesstorage_test.patch, 879 bytes (added by David Sanders, 9 years ago)

Test coverage patch

  • tests/staticfiles_tests/test_storage.py

    diff --git a/tests/staticfiles_tests/test_storage.py b/tests/staticfiles_tests/test_storage.py
    index 318b26c..fc5d249 100644
    a b class TestCollectionManifestStorage(TestHashedFiles, CollectionTestCase):  
    296296        if os.path.exists(self._clear_filename):
    297297            os.unlink(self._clear_filename)
    298298
     299        hashed_files = storage.staticfiles_storage.hashed_files
     300
     301        # The in-memory version of the manifest should match the one on disk
     302        # since a properly created manifest should cover all filenames
     303        if hashed_files:
     304            manifest = storage.staticfiles_storage.load_manifest()
     305            self.assertEqual(hashed_files, manifest)
     306
    299307        super(TestCollectionManifestStorage, self).tearDown()
    300308
    301309    def test_manifest_exists(self):
Back to Top