1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00

handle pytest-asyncio async def coroutines

This commit is contained in:
Thomas Grainger
2017-03-14 13:56:17 +00:00
parent 70f4707063
commit 7514d94262
7 changed files with 106 additions and 34 deletions

7
vcr/_handle_coroutine.py Normal file
View File

@@ -0,0 +1,7 @@
import asyncio
@asyncio.coroutine
def handle_coroutine(vcr, fn):
with vcr as cassette:
return (yield from fn(cassette)) # noqa: E999