diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2011-08-23 00:32:35 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2011-08-23 00:32:35 +0000 |
| commit | 0f767f9a993f5834f7a2004bf4c440a126a73d06 (patch) | |
| tree | 22403e16188fbc6f2487fdcee34b2c5901427546 /tests | |
| parent | b9244cfb89f786701fdb905268854776f5feddeb (diff) | |
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
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/settings_tests/tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/regressiontests/settings_tests/tests.py b/tests/regressiontests/settings_tests/tests.py index 9715046bd4..6af2ed307b 100644 --- a/tests/regressiontests/settings_tests/tests.py +++ b/tests/regressiontests/settings_tests/tests.py @@ -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') |
