mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Use the class decorator syntax available in Python >= 2.6. Refs #17965.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -18,7 +18,7 @@ from django.test import TransactionTestCase
|
||||
from django.test.utils import override_settings
|
||||
|
||||
|
||||
# @override_settings(INSTALLED_APPS=('app1', 'app2'))
|
||||
@override_settings(INSTALLED_APPS=('app1', 'app2'))
|
||||
class ProxyModelInheritanceTests(TransactionTestCase):
|
||||
|
||||
def setUp(self):
|
||||
@@ -41,5 +41,3 @@ class ProxyModelInheritanceTests(TransactionTestCase):
|
||||
from .app2.models import NiceModel
|
||||
self.assertEqual(NiceModel.objects.all().count(), 0)
|
||||
self.assertEqual(ProxyModel.objects.all().count(), 0)
|
||||
|
||||
ProxyModelInheritanceTests = override_settings(INSTALLED_APPS=('app1', 'app2'))(ProxyModelInheritanceTests)
|
||||
|
||||
Reference in New Issue
Block a user