fix logging tests

This commit is contained in:
Ishaan Jaff 2025-08-22 17:23:40 -07:00
parent 26c9110e76
commit 3fcb68dd8b

View file

@ -10,6 +10,16 @@ sys.path.insert(
0, os.path.abspath("../..")
) # Adds the parent directory to the system path
import litellm
import asyncio
@pytest.fixture(scope="session")
def event_loop():
try:
loop = asyncio.get_running_loop()
except RuntimeError:
loop = asyncio.new_event_loop()
yield loop
loop.close()
@pytest.fixture(scope="function", autouse=True)