Open guillaumemaka opened 10 months ago
One solution I found when searching on github for the same issue is:
@pytest.fixture(scope="session", autouse=True)
def event_loop() -> Generator["AbstractEventLoop", Any, None]:
policy = get_event_loop_policy()
loop = policy.new_event_loop()
yield loop
loop.close()
Exception raise when running test: