mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Made reused RequestFactory instances class attributes.
This commit is contained in:
committed by
Tim Graham
parent
7f63b894c0
commit
0f212db29d
@@ -91,10 +91,10 @@ class GenericAdminViewTest(TestDataMixin, TestCase):
|
||||
|
||||
@override_settings(ROOT_URLCONF='generic_inline_admin.urls')
|
||||
class GenericInlineAdminParametersTest(TestDataMixin, TestCase):
|
||||
factory = RequestFactory()
|
||||
|
||||
def setUp(self):
|
||||
self.client.force_login(self.superuser)
|
||||
self.factory = RequestFactory()
|
||||
|
||||
def _create_object(self, model):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user