mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
test_proxy_routes: dedupe lazy force-load to match vector_store test pattern
This commit is contained in:
parent
b3f3b110af
commit
de75cd777e
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue