Closed
Description
Python 3.6 have introduced new async generator entity:
async def foo():
yield 'Foo'
When trying to create yield fixture in pytest (or a simple fixture but with async def
) and decorate it with @pytest.mark.asyncio
i receive a coroutine
instead of fixture result.
Is there a way to make pytest.mark.asyncio
recognize fixtures as coroutine functions or async generator functions and behave properly on them?
Metadata
Metadata
Assignees
Labels
No labels