mirror of
https://github.com/django/django.git
synced 2025-11-15 09:40:57 +00:00
Refs #23947 -- Prevented staticfiles tests from having side effects.
This commit is contained in:
parent
fa6e3a40e1
commit
fd60e6c887
1 changed files with 4 additions and 0 deletions
|
|
@ -438,6 +438,10 @@ def hashed_file_path(test, path):
|
||||||
class TestHashedFiles(object):
|
class TestHashedFiles(object):
|
||||||
hashed_file_path = hashed_file_path
|
hashed_file_path = hashed_file_path
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
# Clear hashed files to avoid side effects among tests.
|
||||||
|
storage.staticfiles_storage.hashed_files.clear()
|
||||||
|
|
||||||
def test_template_tag_return(self):
|
def test_template_tag_return(self):
|
||||||
"""
|
"""
|
||||||
Test the CachedStaticFilesStorage backend.
|
Test the CachedStaticFilesStorage backend.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue