Async fixtures in pytest need to be marked with @pytest_asyncio.fixture
so that they get awaited before passing to the test. The error message tells you that you're getting a coroutine passed into your test method rather than the results of the coroutine being executed.