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
test(proxy): type the sqlstate test parameters
mateo-berri5db2a0c88503
diff --git a/tests/test_litellm/proxy/db/test_exception_handler.py b/tests/test_litellm/proxy/db/test_exception_handler.pyindex 26ac1ea65ad..f7cc5e3ed83 100644--- a/tests/test_litellm/proxy/db/test_exception_handler.py+++ b/tests/test_litellm/proxy/db/test_exception_handler.py@@ -681,7 +681,7 @@ def test_is_deadlock_error_excludes_non_deadlocks(error):(httpx.ReadTimeout("no reply"), None),],)-def test_postgres_sqlstate_reads_the_code_prisma_attached_to_the_failed_statement(error, sqlstate):+def test_postgres_sqlstate_reads_the_code_prisma_attached_to_the_failed_statement(error: Exception, sqlstate: str | None):"""Only a prisma data error carrying Postgres's own error code yields a SQLSTATE; acodeless or malformed payload, an engine-level error, and a transport error yield None."""assert PrismaDBExceptionHandler.postgres_sqlstate(error) == sqlstate