Skip to content

Commit

Permalink
Test that static manifiest file does not get deleted
Browse files Browse the repository at this point in the history
A bug in the process which cleans up unhashed and intermediate files is
also deleting the manifest file, which is obviously not ideal.
  • Loading branch information
evansd committed Jun 15, 2018
1 parent fa330ea commit 52eccef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,7 @@ def test_unversioned_files_are_deleted(self):
f for f in os.listdir(settings.STATIC_ROOT)
if name_pattern.match(f)]
self.assertEqual([versioned_name], remaining_files)

def test_manifest_file_is_left_in_place(self):
manifest_file = os.path.join(settings.STATIC_ROOT, 'staticfiles.json')
self.assertTrue(os.path.exists(manifest_file))

0 comments on commit 52eccef

Please sign in to comment.