mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-10 01:25:34 +00:00
rename file
This commit is contained in:
7
tests/integration/aiohttp_utils.py
Normal file
7
tests/integration/aiohttp_utils.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import asyncio
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def aiohttp_request(session, method, url, as_text, **kwargs):
|
||||
response = yield from session.request(method, url, **kwargs)
|
||||
return response, (yield from response.text()) if as_text else (yield from response.json())
|
||||
Reference in New Issue
Block a user