From f45954d154474627f26248db610d9b6187e08324 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Tue, 7 May 2024 21:31:03 -0700 Subject: [PATCH] test(test_config.py): fix test --- litellm/tests/test_config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm/tests/test_config.py b/litellm/tests/test_config.py index 800f0693e6c..e38187e0eac 100644 --- a/litellm/tests/test_config.py +++ b/litellm/tests/test_config.py @@ -140,6 +140,8 @@ async def test_add_existing_deployment(): deployment_2.to_json(exclude_none=True), ] ) + + init_len_list = len(llm_router.model_list) print(f"llm_router: {llm_router}") master_key = "sk-1234" setattr(litellm.proxy.proxy_server, "llm_router", llm_router) @@ -164,7 +166,7 @@ async def test_add_existing_deployment(): db_models = [db_model] num_added = pc._add_deployment(db_models=db_models) - assert num_added == 0 + assert init_len_list == len(llm_router.model_list) litellm_params = LiteLLM_Params(