mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
fix(test): update test_add_and_delete_deployments for new Router behavior
Router is now created even with empty model_list to support search_tools. Update test to verify router exists with empty model_list instead of expecting router to be None.
This commit is contained in:
parent
9eb71574d8
commit
653d5d0264
1 changed files with 4 additions and 1 deletions
|
|
@ -336,7 +336,10 @@ async def test_add_and_delete_deployments(llm_router, model_list_flag_value):
|
|||
|
||||
if model_list_flag_value == 0:
|
||||
if prev_llm_router_val is None:
|
||||
assert prev_llm_router_val == llm_router
|
||||
# Router is now created even with empty model list (to support search_tools)
|
||||
# So we check that the model_list is empty instead of checking router is None
|
||||
assert llm_router is not None
|
||||
assert len(llm_router.model_list) == 0
|
||||
else:
|
||||
assert prev_llm_router_val == len(llm_router.model_list)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue