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): use record.getMessage() instead of record.message for LogRecord
Julio Quinteros Proaa9d97b23da9
diff --git a/tests/test_litellm/test_cost_calculation_log_level.py b/tests/test_litellm/test_cost_calculation_log_level.pyindex 8ee9ad95cd0..61f1e716e4d 100644--- a/tests/test_litellm/test_cost_calculation_log_level.py+++ b/tests/test_litellm/test_cost_calculation_log_level.py@@ -67,7 +67,7 @@ def test_cost_calculation_uses_debug_level():# Find the cost calculation log recordscost_calc_records = [record for record in handler.records- if "selected model name for cost calculation" in record.message+ if "selected model name for cost calculation" in record.getMessage()]# Verify that cost calculation logs are at DEBUG level@@ -126,7 +126,7 @@ def test_batch_cost_calculation_uses_debug_level():# Find batch cost calculation log recordsbatch_cost_records = [record for record in handler.records- if "Calculating batch cost per token" in record.message+ if "Calculating batch cost per token" in record.getMessage()]# Verify logs exist and are at DEBUG level