mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +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
|
@ -15,8 +15,9 @@ class DummyStorage:
|
|||
|
||||
|
||||
class ApiTests(SimpleTestCase):
|
||||
rf = RequestFactory()
|
||||
|
||||
def setUp(self):
|
||||
self.rf = RequestFactory()
|
||||
self.request = self.rf.request()
|
||||
self.storage = DummyStorage()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue