mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
test: initial test to enforce all functions in user_api_key_auth.py h… (#7797)
* test: initial test to enforce all functions in user_api_key_auth.py have direct testing * test(test_user_api_key_auth.py): add is_allowed_route unit test * test(test_user_api_key_auth.py): add more tests * test(test_user_api_key_auth.py): add complete testing coverage for all functions in `user_api_key_auth.py` * test(test_db_schema_changes.py): add a unit test to ensure all db schema changes are backwards compatible gives user an easy rollback path * test: fix schema compatibility test filepath * test: fix test
This commit is contained in:
parent
6473f9ad02
commit
fbdd88d79c
6 changed files with 417 additions and 5 deletions
|
@ -1,6 +1,5 @@
|
|||
model_list:
|
||||
- model_name: anthropic-vertex
|
||||
- model_name: embedding-small
|
||||
litellm_params:
|
||||
model: vertex_ai/claude-3-5-sonnet@20240620
|
||||
vertex_ai_project: "pathrise-convert-1606954137718"
|
||||
vertex_ai_location: "europe-west1"
|
||||
model: openai/text-embedding-3-small
|
||||
|
|
@ -155,6 +155,7 @@ def _is_allowed_route(
|
|||
"""
|
||||
- Route b/w ui token check and normal token check
|
||||
"""
|
||||
|
||||
if token_type == "ui" and _is_ui_route(route=route, user_obj=user_obj):
|
||||
return True
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue