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]

test_proxy_routes: dedupe lazy force-load to match vector_store test pattern

Michael Riad Zakyde75cd777e5d
diff --git a/tests/proxy_unit_tests/test_proxy_routes.py b/tests/proxy_unit_tests/test_proxy_routes.py
index 67eca5206d4..ac408b278ac 100644
--- a/tests/proxy_unit_tests/test_proxy_routes.py
+++ b/tests/proxy_unit_tests/test_proxy_routes.py
@@ -46,7 +46,10 @@ def test_routes_on_litellm_proxy():
from litellm.proxy._lazy_features import LAZY_FEATURES
+ registered_paths = [getattr(r, "path", "") for r in app.routes]
for feat in LAZY_FEATURES:
+ if any(rp.startswith(p) for p in feat.path_prefixes for rp in registered_paths):
+ continue
try:
module = importlib.import_module(feat.module_path)
feat.register_fn(app, module)