From dc13b83f5bb5972f8a18e391e6a391eb3b5e62e4 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2026 05:22:05 +0000 Subject: [PATCH] test(proxy): assert Relay managed-config is registered as a lazy feature Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com> --- .../proxy/relay_endpoints/test_endpoints.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_litellm/proxy/relay_endpoints/test_endpoints.py b/tests/test_litellm/proxy/relay_endpoints/test_endpoints.py index a3dfead25b6..062719e722b 100644 --- a/tests/test_litellm/proxy/relay_endpoints/test_endpoints.py +++ b/tests/test_litellm/proxy/relay_endpoints/test_endpoints.py @@ -189,3 +189,13 @@ def test_endpoint_requires_authentication() -> None: response = client.get("/relay/managed-config") assert response.status_code == 401 + + +def test_relay_feature_is_registered_lazily() -> None: + from litellm.proxy._lazy_features import LAZY_FEATURES + + relay = next((f for f in LAZY_FEATURES if f.name == "relay"), None) + + assert relay is not None + assert relay.module_path == "litellm.proxy.relay_endpoints.endpoints" + assert relay.matches("/relay/managed-config")