mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
update tests
This commit is contained in:
parent
5f238f2857
commit
7658981cee
2 changed files with 27 additions and 5 deletions
|
@ -19,7 +19,7 @@ import pytest
|
|||
|
||||
import litellm
|
||||
from litellm.proxy._types import LiteLLMRoutes
|
||||
from litellm.proxy.auth.auth_utils import is_openai_route
|
||||
from litellm.proxy.auth.auth_utils import is_llm_api_route
|
||||
from litellm.proxy.proxy_server import app
|
||||
|
||||
# Configure logging
|
||||
|
@ -77,8 +77,8 @@ def test_routes_on_litellm_proxy():
|
|||
("/v1/non_existent_endpoint", False),
|
||||
],
|
||||
)
|
||||
def test_is_openai_route(route: str, expected: bool):
|
||||
assert is_openai_route(route) == expected
|
||||
def test_is_llm_api_route(route: str, expected: bool):
|
||||
assert is_llm_api_route(route) == expected
|
||||
|
||||
|
||||
# Test case for routes that are similar but should return False
|
||||
|
@ -91,5 +91,5 @@ def test_is_openai_route(route: str, expected: bool):
|
|||
"/engines/model/invalid/completions",
|
||||
],
|
||||
)
|
||||
def test_is_openai_route_similar_but_false(route: str):
|
||||
assert is_openai_route(route) == False
|
||||
def test_is_llm_api_route_similar_but_false(route: str):
|
||||
assert is_llm_api_route(route) == False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue