Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test: assert setup_database called with correct args

Harshit28j2f5a553a7d8e
diff --git a/tests/test_litellm/proxy/test_proxy_cli.py b/tests/test_litellm/proxy/test_proxy_cli.py
index bed77b43c1d..642d21a42f7 100644
--- a/tests/test_litellm/proxy/test_proxy_cli.py
+++ b/tests/test_litellm/proxy/test_proxy_cli.py
@@ -720,6 +720,7 @@ class TestHealthAppFactory:
["--local", "--skip_server_startup"], standalone_mode=False
)
assert exc_info.value.code == 1
+ mock_setup_database.assert_called_once_with(use_migrate=True)
# --- Module-level helpers for worker startup hook tests ---