mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Made reused RequestFactory instances class attributes.
This commit is contained in:
parent
7f63b894c0
commit
0f212db29d
25 changed files with 93 additions and 109 deletions
|
@ -224,9 +224,7 @@ class SimpleTemplateResponseTest(SimpleTestCase):
|
|||
},
|
||||
}])
|
||||
class TemplateResponseTest(SimpleTestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.factory = RequestFactory()
|
||||
factory = RequestFactory()
|
||||
|
||||
def _response(self, template='foo', *args, **kwargs):
|
||||
self._request = self.factory.get('/')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue