fastapi_production_template icon indicating copy to clipboard operation
fastapi_production_template copied to clipboard

Pytest_asyncio event loop replacement deprecated

Open mhamid3d opened this issue 10 months ago • 0 comments

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.

mhamid3d avatar Mar 31 '24 02:03 mhamid3d