#16224 closed Bug (fixed)
override_settings does not work on a TestCase class
Reported by: | Orne Brocaar | Owned by: | Jannis Leidel |
---|---|---|---|
Component: | Testing framework | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The override_settings decorator (https://docs.djangoproject.com/en/dev/topics/testing/#django.test.utils.override_settings) does not work when decorating a TestCase class. The problem is that after decorating the TestCase class, the testrunner does not detect the class as a TestCase class anymore, so the tests within the class are not executed.
Change History (3)
comment:1 by , 14 years ago
Owner: | changed from | to
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In [16377]: