You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sounds like pytest fixture is returning an async iterable instead the value in the yield.
Could it be caused by some bug in some version of some package, or is a problem of the asgi-lifespan? Or I mess up with my setting?
The text was updated successfully, but these errors were encountered:
Yes, it’s likely the latest version of pytest-asyncio switched how async fixtures should be declared. I believe they should be @pytest_asyncio.fixture now, or something.
If you figure out this fixes the issue, I’d be happy to review a PR to update the README. :)
I reproduced the app example given in the README.txt and I got the following error:
I run
pytest -s test_app.py
on a new environment with the installed packages explained in the README. Here is mypip list
:Sounds like
pytest
fixture is returning an async iterable instead the value in theyield
.Could it be caused by some bug in some version of some package, or is a problem of the
asgi-lifespan
? Or I mess up with my setting?The text was updated successfully, but these errors were encountered: