From 653d5d02645c903f9939e09e07aeab3c824e3da8 Mon Sep 17 00:00:00 2001 From: Shin Date: Sat, 7 Feb 2026 17:32:41 +0000 Subject: [PATCH] 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. --- tests/local_testing/test_config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/local_testing/test_config.py b/tests/local_testing/test_config.py index e74f92ca7a5..2ef29c99450 100644 --- a/tests/local_testing/test_config.py +++ b/tests/local_testing/test_config.py @@ -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: