1
0
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:
Simon Charette
2018-11-26 14:01:27 -05:00
committed by Tim Graham
parent 7f63b894c0
commit 0f212db29d
25 changed files with 93 additions and 109 deletions

View File

@@ -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):
"""