litellm/tests/unit/integrations/SlackAlerting
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
..
__init__.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_budget_alert_types.py fix(alerts): isolate budget delivery by destination (#55641) 2026-12-04 12:33:43 -08:00
test_budget_delivery.py fix(alerts): isolate budget delivery by destination (#55641) 2026-12-04 12:33:43 -08:00
test_hanging_request_check.py fix(alerting): retire completed requests and prevent hanging alert starvation (#54493) 2026-11-25 13:05:51 -08:00
test_model_deprecation_alert.py feat(alerts): add management controls and opt-in daily summaries (#51418) 2026-11-12 10:06:07 -08:00
test_ms_teams.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_slack_alerting.py fix(alerts): isolate budget delivery by destination (#55641) 2026-12-04 12:33:43 -08:00
test_slack_alerting_delivery.py test: replace 61 live logging and otel tests with offline unit and integration coverage (#45362) 2026-10-08 15:55:57 -07:00
test_slack_alerting_digest.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00
test_slack_alerting_utils.py refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
test_user_spend_alerts.py test: move tests/test_litellm integrations and secret_managers into tests/unit (#43194) 2026-09-25 12:57:07 -07:00