#24364: Tests fail when `ManifestStaticFilesStorage` used
-----------------------------------+--------------------------------------
     Reporter:  natevw             |                    Owner:  nobody
         Type:  Uncategorized      |                   Status:  new
    Component:  Testing framework  |                  Version:  1.7
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------

Comment (by natevw):

 This was actually breaking all my tests, irregardless of being based on
 `StaticLiveServerTestCase` or not. A more robust workaround is to revert
 the `STATICFILES_STORAGE` setting during tests. I now put this atop my
 tests.py file to work around the situation:

 {{{
 # WORKAROUND: https://code.djangoproject.com/ticket/24364 by reverting to
 default storage
 from django.conf import settings, global_settings
 settings.STATICFILES_STORAGE = global_settings.STATICFILES_STORAGE
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24364#comment:3>
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/064.350c7ee0ce12df4cf0e6d706294811ae%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to