Merge pull request #512 from subyraman/fix-url-building

Fix `request.url` and other url properties
This commit is contained in:
Raphael Deem
2017-03-10 00:38:16 -08:00
committed by GitHub
10 changed files with 168 additions and 18 deletions

View File

@@ -17,7 +17,9 @@ class SanicTestClient:
host=HOST, port=PORT, uri=uri)
log.info(url)
async with aiohttp.ClientSession(cookies=cookies) as session:
conn = aiohttp.TCPConnector(verify_ssl=False)
async with aiohttp.ClientSession(
cookies=cookies, connector=conn) as session:
async with getattr(
session, method.lower())(url, *args, **kwargs) as response:
response.text = await response.text()