#27741: test_corrupt_intermediate_files
(staticfiles_tests.test_storage.TestCollectionCachedStorage) fails with
ValueError: The file 'cached/css/img/window.a836fe39729e.png' could not be
found
-----------------------------------------+------------------------
Reporter: Chris Lamb | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
{{{
======================================================================
ERROR: test_corrupt_intermediate_files
(staticfiles_tests.test_storage.TestCollectionCachedStorage)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/case.py", line 329, in run
testMethod()
File "/tmp/buildd/python-
django-1.11~alpha1/tests/staticfiles_tests/test_storage.py", line 296, in
test_corrupt_intermediate_files
self.hashed_file_path('cached/css/img/window.png')
File "/tmp/buildd/python-
django-1.11~alpha1/tests/staticfiles_tests/test_storage.py", line 24, in
hashed_file_path
fullpath = test.render_template(test.static_template_snippet(path))
File "/tmp/buildd/python-
django-1.11~alpha1/tests/staticfiles_tests/cases.py", line 38, in
render_template
return template.render(Context(**kwargs)).strip()
File "/tmp/buildd/python-django-1.11~alpha1/django/template/base.py",
line 207, in render
return self._render(context)
File "/tmp/buildd/python-django-1.11~alpha1/django/test/utils.py", line
107, in instrumented_test_render
return self.nodelist.render(context)
File "/tmp/buildd/python-django-1.11~alpha1/django/template/base.py",
line 990, in render
bit = node.render_annotated(context)
File "/tmp/buildd/python-django-1.11~alpha1/django/template/base.py",
line 957, in render_annotated
return self.render(context)
File "/tmp/buildd/python-
django-1.11~alpha1/django/templatetags/static.py", line 105, in render
url = self.url(context)
File "/tmp/buildd/python-
django-1.11~alpha1/django/templatetags/static.py", line 102, in url
return self.handle_simple(path)
File "/tmp/buildd/python-
django-1.11~alpha1/django/templatetags/static.py", line 117, in
handle_simple
return staticfiles_storage.url(path)
File "/tmp/buildd/python-
django-1.11~alpha1/django/contrib/staticfiles/storage.py", line 162, in
url
return self._url(self.stored_name, name, force)
File "/tmp/buildd/python-
django-1.11~alpha1/django/contrib/staticfiles/storage.py", line 141, in
_url
hashed_name = hashed_name_func(*args)
File "/tmp/buildd/python-
django-1.11~alpha1/django/contrib/staticfiles/storage.py", line 365, in
stored_name
self.hashed_name(name, content=None, filename=intermediate_name)
File "/tmp/buildd/python-
django-1.11~alpha1/django/contrib/staticfiles/storage.py", line 101, in
hashed_name
raise ValueError("The file '%s' could not be found with %r." %
(filename, self))
ValueError: The file 'cached/css/img/window.a836fe39729e.png' could not be
found with <django.contrib.staticfiles.storage.CachedStaticFilesStorage
object at 0x7f43b6114e90>.
----------------------------------------------------------------------
Ran 11906 tests in 171.474s
FAILED (errors=1, skipped=1152, expected failures=4)
}}}
This is from the 1.11 alpha1 tarball, rather than git itself.
--
Ticket URL: <https://code.djangoproject.com/ticket/27741>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/048.5dde30bd58cb582e47fcc70960d97604%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.