johnnoone / pytest-curio

Launch pytest with curio
Apache License 2.0
10 stars 6 forks source link

Add support for async (generator) fixtures #4

Open malinoff opened 7 years ago

malinoff commented 7 years ago

https://github.com/pytest-dev/pytest-asyncio has a very convenient feature: async (generator) fixtures. I.e.

@pytest.fixture()
async def connection():
    async with Connection() as conn:
        yield conn

I'd like to also have async (generator) fixtures in pytest-curio.

geronimo-iia commented 4 years ago

Hello, this seem to be the case with the last release