litellm/tests
Yujong Lee 86326908eb refactor(auth): end every JWT not mapped to a key as its identity
A JWT that acts as itself now leaves the auth core as `JwtIdentity`, and Python
builds its UserAPIKeyAuth once after the core returns, as it already did for a
proxy admin. The project read and the per-model user budget check that
`finish_jwt` hid become core-driven steps in the same order: the existing
`project` read on the auto-registered key, then a new `jwt_user_model_budget`
step. A key auto-registered for a JWT that skips the key checks ends as its own
`AutoRegisteredJwt` identity with the key row and its project.

`AuthHost::finish_jwt`, `FinishedJwt`, `Identity::FinishedJwt`, the bridge's
finish steps and the Python finish methods are gone.
2026-11-25 22:41:01 +00:00
..
_support test(rate-limit): wait for the Rust limiter's queued log lines before comparing them (#54257) 2026-11-24 21:17:18 +00:00
audio_tests
base_sdk_tests fix(packaging): ship the license public key in the litellm-proxy sdist (#52970) 2026-11-19 23:18:32 +00:00
basic_proxy_startup_tests
benchmarks fix(guardrails): classify only the frames each read completes in Presidio's first-frame wait (#54379) 2026-11-25 11:15:49 +00:00
code_coverage_tests fix(guardrails): check one-object parts and tool turns on generateContent (#54359) 2026-11-25 12:32:47 +00:00
documentation_tests
e2e test(responses-bridge): cover multi-turn GPT-6.2 prompt caching on OpenAI and Bedrock Mantle (#54361) 2026-11-25 11:39:57 +00:00
e2e_harness test(e2e): move the Claude Code matrix to Opus, Sonnet and Haiku 5.5, Fable 5.2 and GPT-6 (#54305) 2026-11-25 01:47:03 +00:00
fixtures
harness_e2e
integration fix(router): send /v1/messages message_start live during thinking when retries are on (#54319) 2026-11-25 12:06:26 +00:00
rust-python-harness fix(gateway): serve messages drop, summary and timeout settings like Python (#51236) 2026-11-25 09:26:12 +00:00
test_litellm_rust test(rust): update rust-wheel messages tests to main's current behaviour (#54223) 2026-11-24 12:24:37 -08:00
typing
unit refactor(auth): end every JWT not mapped to a key as its identity 2026-11-25 22:41:01 +00:00
windows_tests ci(unit): cut unit check time with cheaper per-test resets and fewer non-unit tests (#51864) 2026-11-14 15:41:30 -08:00
__init__.py
_fake_openai_endpoint_server.py
_flush_vcr_cache.py
_live_test_helpers.py
_master_key.py
_module_state.py ci(unit): cut unit check time with cheaper per-test resets and fewer non-unit tests (#51864) 2026-11-14 15:41:30 -08:00
_openai_record_replay_proxy.py
_process_helpers.py
_vcr_conftest_common.py
_vcr_redis_persister.py
_wait_helpers.py
_ws_vcr.py
AGENTS.md
capturing_transport.py
eval_swe_bench.py
fake_openai_endpoint.py
gettysburg.wav
large_text.py
openai_batch_completions.jsonl
pyrightconfig.json
README.MD
test_logging.conf
test_rust_python_harness.py
VCR_TESTING.md
white_100x100.png

In total litellm runs 1000+ tests

[02/20/2025] Update:

To make it easier to contribute and map what behavior is tested,

we've started mapping the litellm directory in tests/unit

This folder can only run mock tests.