Ticket #23947: static_files.diff

File static_files.diff, 575 bytes (added by Diego Guimarães, 10 years ago)
  • tests/staticfiles_tests/tests.py

    diff --git a/tests/staticfiles_tests/tests.py b/tests/staticfiles_tests/tests.py
    index 5dc630f..ffce4d0 100644
    a b def hashed_file_path(test, path):  
    438438class TestHashedFiles(object):
    439439    hashed_file_path = hashed_file_path
    440440
     441    def tearDown(self):
     442        # Clear hashed files to avoid side effects among tests.
     443        storage.staticfiles_storage.hashed_files.clear()
     444
    441445    def test_template_tag_return(self):
    442446        """
    443447        Test the CachedStaticFilesStorage backend.
Back to Top