litellm/tests/unit/proxy/utils
tin-berri 263e99105c
fix(alerts): isolate budget delivery by destination (#55641)
* fix(alerts): isolate budget delivery by destination

* test(alerts): consolidate delivery regressions and declare cachetools for litellm-core

* fix(alerts): keep team name, spend and budget in team threshold emails

Team budget emails below 100% fell through to the placeholder body and a
subject without the team alias. main renders the team body for every team
budget event, so render_budget_email now does the same.

* test(alerts): drop a duplicate dispatch variant and shorten the team email test

The direct send_alert variant of the slow-destination test ran the same
delivery code as the budget_alerts variant, so it goes. The team email
test builds its event from a CallInfo. Test additions are now 579 lines
against 583 production lines.

* fix(alerts): keep log_to_console output for direct budget alerts

Slack and Teams budget alerts now post directly, so they no longer pass
through send_to_webhook, which printed the payload when log_to_console is
set. The direct post logs the same chat text.
2026-12-04 12:33:43 -08:00
..
helpers feat(proxy)!: make Scalar the default API reference and remove ReDoc (#53063) 2026-11-23 10:49:54 -08:00
prisma_and_spend fix(proxy): honor disable_spend_logs from db config and on redis replay (#54526) 2026-11-28 11:25:38 -08:00
proxy_logging fix(alerts): isolate budget delivery by destination (#55641) 2026-12-04 12:33:43 -08:00
__init__.py test(proxy): move utils, agent_endpoints and endpoint tests into tests/unit/proxy (#44006) 2026-10-01 11:06:42 -07:00