Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#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: master
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


The override_settings decorator ( 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 Changed 7 years ago by Jannis Leidel

Owner: changed from nobody to Jannis Leidel
Triage Stage: UnreviewedAccepted

comment:2 Changed 7 years ago by Jannis Leidel

Resolution: fixed
Status: newclosed

In [16377]:

Fixed #16224 -- Fixed override_settings test utility to correctly work with TestCase classes.

comment:3 Changed 7 years ago by Jacob

milestone: 1.4

Milestone 1.4 deleted

Note: See TracTickets for help on using tickets.
Back to Top