testing.py 461 B

1234567891011121314
  1. from django.test import LiveServerTestCase
  2. from django.contrib.staticfiles.handlers import StaticFilesHandler
  3. class StaticLiveServerCase(LiveServerTestCase):
  4. """
  5. Extends django.test.LiveServerTestCase to transparently overlay at test
  6. execution-time the assets provided by the staticfiles app finders. This
  7. means you don't need to run collectstatic before or as a part of your tests
  8. setup.
  9. """
  10. static_handler = StaticFilesHandler