Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fixes test

Ishaan Jafferb0a2e08a6062
diff --git a/tests/enterprise/litellm_enterprise/proxy/test_audit_logging_endpoints.py b/tests/enterprise/litellm_enterprise/proxy/test_audit_logging_endpoints.py
index ffc163dea12..a0a26c089eb 100644
--- a/tests/enterprise/litellm_enterprise/proxy/test_audit_logging_endpoints.py
+++ b/tests/enterprise/litellm_enterprise/proxy/test_audit_logging_endpoints.py
@@ -2,12 +2,16 @@ from datetime import datetime, timedelta
from unittest.mock import AsyncMock, patch
import pytest
+from fastapi import FastAPI
from fastapi.testclient import TestClient
+from litellm_enterprise.proxy.audit_logging_endpoints import router as audit_router
from litellm_enterprise.types.proxy.audit_logging_endpoints import AuditLogResponse
from litellm.proxy._types import UserAPIKeyAuth
-from litellm.proxy.proxy_server import app
+# Create an app with just the audit router for testing
+app = FastAPI()
+app.include_router(audit_router)
client = TestClient(app)
# Mock data for testing