From ee27c689e12e1074cbd7ae235f0b0c076130422a Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 23 Mar 2017 20:06:39 +0800 Subject: [PATCH] commented aiohttp load response body in testing --- sanic/testing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanic/testing.py b/sanic/testing.py index 4fde428c..611f709d 100644 --- a/sanic/testing.py +++ b/sanic/testing.py @@ -22,8 +22,8 @@ class SanicTestClient: cookies=cookies, connector=conn) as session: async with getattr( session, method.lower())(url, *args, **kwargs) as response: - response.text = await response.text() - response.body = await response.read() + # response.text = await response.text() + # response.body = await response.read() return response def _sanic_endpoint_test(