import pytest_asyncio @pytest_asyncio.fixture(scope="session", autouse=True) async def setup(): print("hello from setup!") yield print("bye from setup!")