#35662: running tests now requires static files to be generated when using
ManifestStaticFilesStorage
-------------------------------------+-------------------------------------
Reporter: Patrick Rauscher | Owner: (none)
Type: Bug | Status: closed
Component: contrib.staticfiles | Version: 5.1
Severity: Normal | Resolution: needsinfo
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 Patrick Rauscher):
Hey Natalia,
thank you for your comment - I spend some time debugging the issue and
have to admit the issue is within my test case definition: I used
{{{
@override_settings(STATICFILES_STORAGE="django.contrib.staticfiles.storage.StaticFilesStorage")
class MainTestCase(django.test.TestCase): ...
}}}
as a Main Test-Class and inherited my other TestCases from this
MainTestCase, forgetting about this override in the process.
As STATICFILES_STORAGE got removed in 5.1, this override didn't work any
longer and test cases broke.
As deprecation of STATICFILES_STORAGE is documented, there is no change
needed, this comment should just serve as information for any poor soul
reaching the ticket by google :)
Updating the override to STORAGES=... did obviously help.
--
Ticket URL: <https://code.djangoproject.com/ticket/35662#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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701913620b765-7ed7f9c0-e7f6-48a8-be28-12deb93d2833-000000%40eu-central-1.amazonses.com.