mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
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
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16650 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -15,6 +15,9 @@ class FullyDecoratedTranTestCase(TransactionTestCase):
|
||||
def test_method_override(self):
|
||||
self.assertEqual(settings.TEST, 'override2')
|
||||
|
||||
def test_decorated_testcase_name(self):
|
||||
self.assertEquals(FullyDecoratedTranTestCase.__name__, 'FullyDecoratedTranTestCase')
|
||||
|
||||
FullyDecoratedTranTestCase = override_settings(TEST='override')(FullyDecoratedTranTestCase)
|
||||
|
||||
# @override_settings(TEST='override')
|
||||
|
||||
Reference in New Issue
Block a user