Opened 14 years ago

Closed 14 years ago

Last modified 13 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: 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 Jannis Leidel, 14 years ago

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

comment:2 by Jannis Leidel, 14 years ago

Resolution: fixed
Status: newclosed

In [16377]:

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

comment:3 by Jacob, 13 years ago

milestone: 1.4

Milestone 1.4 deleted

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