mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-19 04:54:37 +00:00
test(proxy): assert Relay managed-config is registered as a lazy feature
Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
This commit is contained in:
parent
3d44fdcf73
commit
dc13b83f5b
1 changed files with 10 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue