summaryrefslogtreecommitdiff
path: root/tests/test_client/views.py
diff options
context:
space:
mode:
authorScott Halgrim <shalgrim@gmail.com>2022-11-08 12:19:59 +0100
committerCarlton Gibson <carlton@noumenal.es>2022-11-08 13:53:34 +0100
commitc4eaa67e2b880db778c9fe6d9854fbdfcc16ecd2 (patch)
treea3d2aa24cd99ec75b204f8112caf04675c5a0f8f /tests/test_client/views.py
parent8e6ea1d153a852b83eaa4807301b143df1647a44 (diff)
Fixed #34063 -- Fixed reading request body with async request factory and client.
Co-authored-by: Kevan Swanberg <kevswanberg@gmail.com> Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Diffstat (limited to 'tests/test_client/views.py')
-rw-r--r--tests/test_client/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_client/views.py b/tests/test_client/views.py
index 773e9e4e98..01850257b5 100644
--- a/tests/test_client/views.py
+++ b/tests/test_client/views.py
@@ -90,6 +90,8 @@ def post_view(request):
c = Context()
else:
t = Template("Viewing GET page.", name="Empty GET Template")
+ # Used by test_body_read_on_get_data.
+ request.read(200)
c = Context()
return HttpResponse(t.render(c))