test(conftest.py): create an event loop if one doesn't exist

This commit is contained in:
Krrish Dholakia 2024-01-13 14:21:24 +05:30
parent c43a141889
commit 3789b37e97

View file

@ -21,6 +21,10 @@ def setup_and_teardown():
import litellm
importlib.reload(litellm)
import asyncio
loop = asyncio.get_event_loop_policy().new_event_loop()
asyncio.set_event_loop(loop)
print(litellm)
# from litellm import Router, completion, aembedding, acompletion, embedding
yield