mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-02 01:28:38 +00:00
* feat(e2e): give e2e tests typed metadata for what they drive @meta(Subject(domain, route, providers, models, capabilities, mode)) declares what a test is about with closed enums, and each field lands in the JUnit report as a property. The quota_management suites are the first to declare it. * docs(e2e): say e2e_metadata avoids litellm, not that it is stdlib-only It already imports pydantic and pytest, both of which the suite needs to collect. The rule that matters is no litellm import * test(e2e): declare models through the constant each test drives 43 @meta declarations in quota_management typed the model name out again, so changing the call would leave the coverage report naming the old model. Each file now has one constant used by both, and a guard fails on any model written as a string literal in @meta * refactor(e2e): set route only when the endpoint is what the test checks A budget or rate-limit test whose chat call only triggers the block now leaves route unset, since its steps already name the call. Tests of an endpoint keep it: budget CRUD, key creation, spend reporting reads, and the per-endpoint spend tests for chat, messages, embeddings, batches and health. The two /spend/logs tests tagged chat_completions are now spend_reporting * refactor(e2e): build the declared properties without mutating a list subject_properties seeded a list and grew it with append and extend. It now flattens one tuple per field, and the plural-name table is a read-only mapping * fix(e2e): tag each spend-route probe with the endpoint it checks The breadth test gave all 33 probes spend_reporting, so /key/list, /user/list, /team/list, /organization/list and /customer/list counted as spend reporting. Each case now carries its own route, with organization and customer management added to Route |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| cost_rows.py | ||
| spend_e2e_client.py | ||
| spend_reconciliation.py | ||
| SPEND_TRACKING_COVERAGE_MATRIX.md | ||
| test_cache_cost_accounting_e2e.py | ||
| test_cost_headers_e2e.py | ||
| test_key_attribution_e2e.py | ||
| test_provider_edge_spend_e2e.py | ||
| test_service_tier_pricing_e2e.py | ||
| test_spend_routes.py | ||
| test_spend_surface_consistency_e2e.py | ||
| test_spend_tracking_e2e.py | ||
| test_team_daily_activity_e2e.py | ||
| test_websearch_interception_session_e2e.py | ||