#24364: Cannot run `StaticLiveServerTestCase` 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
-----------------------------------+--------------------------------------
Changes (by natevw):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Looks like the immediate cause is
 [https://docs.djangoproject.com/en/1.7/topics/testing/overview/#other-
 test-conditions this]:

 > Regardless of the value of the DEBUG setting in your configuration file,
 all Django tests run with DEBUG=False.

 The `HashedFilesMixin` relies on debug mode to leave URLs alone, so when
 that is disabled it expects the manifest file generated by the
 `collectstatic` management command.

 At this point, the cleanest workaround idea I've found will be to use the
 `override_settings` decorator to set it back
 ([http://stackoverflow.com/a/13596201/179583 as described on here]) on
 every method in my Selenium test suite.

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

Reply via email to