litellm/tests/unit/proxy/management_helpers
tin-berri 6bcc7ff6b9
fix(budgets): preserve calendar periods across DST (#53065)
* fix(budgets): preserve calendar periods across DST

Resolve repeated and missing calendar boundaries consistently and persist
server-owned window starts through edits, rollover, and manual resets.

* fix(budgets): start a new window no later than its creation

A custom N-day window created before the configured budget_reset_time
derived its start from reset_at - N days, which landed after creation,
so a cache rebuild dropped spend made before that start. Clamp the saved
window_start of a newly initialized window to now; reset_at is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore: regenerate API types after rebasing onto main

* test(budgets): annotate creation-time regression cases

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 15:27:05 -08:00
..
__init__.py
team_metadata_validator_impls.py test(proxy): move management_endpoints, management_helpers and guardrails tests into tests/unit/proxy (#44003) 2026-10-01 10:52:03 -07:00
test_access_group_key_sync.py test(proxy): move management_endpoints, management_helpers and guardrails tests into tests/unit/proxy (#44003) 2026-10-01 10:52:03 -07:00
test_access_group_model_sync.py refactor(router): move router callers onto the entry points and invert the proxy imports (#48847) 2026-10-29 17:26:33 +00:00
test_access_group_team_sync.py test(proxy): move management_endpoints, management_helpers and guardrails tests into tests/unit/proxy (#44003) 2026-10-01 10:52:03 -07:00
test_apps.py feat(proxy): cache per-app customer authentication records (#53056) 2026-11-20 10:19:31 +00:00
test_audit_log_callbacks.py refactor(s3-log): move the rust-backed s3 logger from s3_v3 to s3_v2 (#51893) 2026-11-14 22:24:23 -08:00
test_audit_logs_proxy.py feat(db): insert audit logs through the rust repository (#52779) 2026-11-20 14:53:02 +09:00
test_auto_router_availability.py refactor(router): fence the router surface and document the router-core boundary (#48839) 2026-10-29 00:01:52 +00:00
test_auto_router_permissions.py fix(databricks): call the ai_decide AI Function route for decisions and the auto-router (#45722) 2026-10-10 23:58:16 -07:00
test_bulk_user_creation.py feat(proxy): app-scoped read access to Customer Management through object permissions (#52781) 2026-11-19 10:43:41 -08:00
test_bulk_user_deletion.py feat(auth): read virtual keys, jwt key mappings and model access groups through rust repositories (#52173) 2026-11-18 03:53:37 +00:00
test_customer_budget_usage.py fix(budgets): match window starts to stored millisecond precision (#51921) 2026-11-16 04:02:44 +08:00
test_customer_hierarchy.py fix(proxy): preserve budget window edits during resets (#53064) 2026-11-20 10:50:27 -08:00
test_management_helpers_utils.py fix(budgets): preserve calendar periods across DST (#53065) 2026-11-20 15:27:05 -08:00
test_object_permission_utils.py feat(proxy): app-scoped read access to Customer Management through object permissions (#52781) 2026-11-19 10:43:41 -08:00
test_resource_display_names.py feat(access-groups): name group vector stores and list them on team info (#51484) 2026-11-13 07:53:04 -08:00
test_team_list_sorting.py feat(ui): sort every teams table data column (#48109) 2026-10-23 16:21:36 -07:00
test_team_member_permission_checks.py fix(proxy): align ownership and scope handling (#50600) 2026-11-08 07:03:36 +00:00
test_team_metadata_validation.py refactor(proxy): expose public names for private proxy helpers (#45170) 2026-10-07 18:59:27 -07:00
test_team_roster_sync.py feat(auth): read virtual keys, jwt key mappings and model access groups through rust repositories (#52173) 2026-11-18 03:53:37 +00:00
test_user_list_sorting.py feat(ui): sort every users table data column (#48105) 2026-10-23 16:12:51 -07:00