#24364: Cannot run `StaticLiveServerTestCase` when `ManifestStaticFilesStorage`
used?
-----------------------------------+--------------------
Reporter: natevw | Owner: nobody
Type: Uncategorized | Status: new
Component: Testing framework | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------
I recently switched a project to the ManifestStaticFilesStorage backend
for the "permacacheable" URLs it gives to resources that may change.
However, this seems to have broken some of my Selenium tests, which use
`StaticLiveServerTestCase` for the browser resources.
Now when I try to run my tests, they fail. I get a bunch of stacktraces
that read
ValueError: The file 'images/favicon.ico' could not be found with
<django.contrib.staticfiles.storage.ManifestStaticFilesStorage object at
0x1037ed290>.
Running `./manage.py collectstatic` before the tests makes the problem go
away, but this is a poor workaround (it leaves stale resources which
become confusing during development). Accessing the site works just fine
via `./manage.py runserver`, but is it expected for tests not to work in
this configuration?
--
Ticket URL: <https://code.djangoproject.com/ticket/24364>
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/049.093fc8f62faafddd1594cfa5469d47f0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.