fastapi_production_template
fastapi_production_template copied to clipboard
Pytest_asyncio event loop replacement deprecated
In the conftest.py
the event loop is being replaced with a new one. This is no longer supported with pytest_asyncio
and results in this warning:
Replacing the event_loop fixture with a custom implementation is deprecated
and will lead to errors in the future.
If you want to request an asyncio event loop with a scope other than function
scope, use the "scope" argument to the asyncio mark when marking the tests.
If you want to return different types of event loops, use the event_loop_policy
fixture.