Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#16672 closed Bug (fixed)

Preserve name of TestCase decorated with override_settings

Reported by: Julien Phalip Owned by: nobody
Component: Testing framework Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Currently the decorated TestCase gets the name of 'inner'. See patch attached.

Attachments (1)

16672.decorated-testcase-name.diff (1.1 KB) - added by Julien Phalip 10 years ago.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by Julien Phalip

comment:1 Changed 10 years ago by Julien Phalip

Perhaps other attributes should be preserved, but in my use case __name__ is all I need.

comment:2 Changed 10 years ago by Aymeric Augustin

Triage Stage: UnreviewedAccepted

comment:3 Changed 10 years ago by Jannis Leidel

Triage Stage: AcceptedReady for checkin

comment:4 Changed 10 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

In [16650]:

Fixed #16672 -- Ensure that test classes decorated with @override_setings gets the right name when running the tests. Thanks to Julien Phalip for the report and initial patch

comment:5 Changed 10 years ago by Ramiro Morales

In [16722]:

(The changeset message doesn't reference this ticket)

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