summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests
diff options
context:
space:
mode:
authorDiego GuimarĂ£es <diegobr.sistemas@gmail.com>2014-12-09 11:14:33 -0500
committerTim Graham <timograham@gmail.com>2014-12-09 11:17:05 -0500
commitfd60e6c8878986a102f0125d9cdf61c717605cf1 (patch)
tree87e6166e98c422a7c780ede9bc091920318eba7f /tests/staticfiles_tests
parentfa6e3a40e1866b64eb30e0dfbd43b340c0d831da (diff)
Refs #23947 -- Prevented staticfiles tests from having side effects.
Diffstat (limited to 'tests/staticfiles_tests')
-rw-r--r--tests/staticfiles_tests/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/staticfiles_tests/tests.py b/tests/staticfiles_tests/tests.py
index 5dc630f004..ffce4d047b 100644
--- a/tests/staticfiles_tests/tests.py
+++ b/tests/staticfiles_tests/tests.py
@@ -438,6 +438,10 @@ def hashed_file_path(test, path):
class TestHashedFiles(object):
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):
"""
Test the CachedStaticFilesStorage backend.