pytest-dev / pytest-asyncio

Asyncio support for pytest
https://pytest-asyncio.readthedocs.io
Apache License 2.0
1.43k stars 152 forks source link

You need to install a suitable plugin for your async framework, for example: #843

Closed tyler-suard-parker closed 4 months ago

tyler-suard-parker commented 6 months ago

I keep getting this error message even after installing pytest-asyncio and restarting my terminal. Python 3.9.0, Pytest 8.2.1

seifertm commented 4 months ago

Without any code or further description of your problem, I cannot help.

One possible reason is that pytest-asyncio has two different test discovery modes, strict and auto. In strict mode (the default), pytest-asyncio doesn't process tests unless you apply the @pytest.mark.asyncio decorator to them.