diff options
| author | Jannis Leidel <jannis@leidel.info> | 2012-02-16 14:40:32 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2012-02-16 14:40:32 +0000 |
| commit | 758a0cd0f1c646abf6f7d4f01850d3729ad603e0 (patch) | |
| tree | 689c659d79da4b58aea724f9457361ec07b59f0f /tests | |
| parent | 8f4d12ead2563a8c65722a23fc10c3a3f817dcaa (diff) | |
Fixed #17689 -- Stopped the CachedStaticFilesStorage from trying to hash paths that aren't files.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17535 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/staticfiles_tests/tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regressiontests/staticfiles_tests/tests.py b/tests/regressiontests/staticfiles_tests/tests.py index 680027b63c..9834885fdd 100644 --- a/tests/regressiontests/staticfiles_tests/tests.py +++ b/tests/regressiontests/staticfiles_tests/tests.py @@ -317,6 +317,10 @@ class TestCollectionCachedStorage(BaseCollectionTestCase, "/static/test/file.ea5bccaf16d5.txt") self.assertStaticRenders("cached/styles.css", "/static/cached/styles.93b1147e8552.css") + self.assertStaticRenders("path/", + "/static/path/") + self.assertStaticRenders("path/?query", + "/static/path/?query") def test_template_tag_simple_content(self): relpath = self.cached_file_path("cached/styles.css") |
