79163193

Date: 2024-11-06 15:16:35
Score: 0.5
Natty:
Report link

I think you have to do something like this in your conftest.py (or somewhere) so first you create a new loop and then set it with asyncio.

@pytest.fixture(scope='session')
def event_loop():
    loop = asyncio.new_event_loop()
    asyncio.set_event_loop(loop)
    yield loop
    loop.close()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Olsi Hoxha