Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#16672 closed Bug (fixed)

Preserve name of TestCase decorated with override_settings

Reported by: julien 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

Description

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 4 years ago.

Download all attachments as: .zip

Change History (6)

Changed 4 years ago by julien

comment:1 Changed 4 years ago by julien

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

comment:2 Changed 4 years ago by aaugustin

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 4 years ago by jezdez

  • Triage Stage changed from Accepted to Ready for checkin

comment:4 Changed 4 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

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 4 years ago by ramiro

In [16722]:

(The changeset message doesn't reference this ticket)

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