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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(tests): satisfy the tests-tree ruff config and correct a stale comment
Yuneng Jiangfbd133999325
diff --git a/litellm/proxy/proxy_cli.py b/litellm/proxy/proxy_cli.pyindex c1d86344a1e..86f6853a625 100644--- a/litellm/proxy/proxy_cli.py+++ b/litellm/proxy/proxy_cli.py@@ -1323,10 +1323,10 @@ def run_server(use_v2_resolver=use_v2_migration_resolver,)except RuntimeError as e:- # Raised on unrecoverable migration errors: the v2- # resolver's non-idempotent failures and permission- # issues, and any `prisma db push` against a- # partitioned LiteLLM_SpendLogs.+ # Raised on unrecoverable migration errors: permission+ # failures from either resolver, the v2 resolver's+ # non-idempotent failures, and any `prisma db push`+ # against a partitioned LiteLLM_SpendLogs.print(f"\033[1;31mLiteLLM Proxy: Database migration cannot proceed. {e}\033[0m",file=sys.stderr,diff --git a/tests/litellm-proxy-extras/test_setup_database_fail_fast.py b/tests/litellm-proxy-extras/test_setup_database_fail_fast.pyindex deb78dcdb30..0b59c5f9430 100644--- a/tests/litellm-proxy-extras/test_setup_database_fail_fast.py+++ b/tests/litellm-proxy-extras/test_setup_database_fail_fast.py@@ -219,7 +219,7 @@ def test_v2_resolve_specific_migration_failure_raises_runtime_error()with patch("subprocess.run", side_effect=_fake_migrate_deploy_failure(1, stderr)):with pytest.raises(- RuntimeError, match="Failed to mark migration .* as applied"+ RuntimeError, match=r"Failed to mark migration .* as applied"):ProxyExtrasDBManager.setup_database(use_migrate=True, use_v2_resolver=True)