litellm/tests
mateo-berri c8d81ec866 fix(guardrails): keep Claude Code's billing header and each system block in place on /v1/messages
A /v1/messages guardrail scanned the system blocks without Claude Code's billing header but wrote each result back by its index among all blocks, so every block moved one slot early, the last block kept its original text, and the billing header was dropped. Write each scanned block back to its own slot and keep the header first in both the list and the string shape

(cherry picked from commit a56e37cbfa)
2026-11-25 07:46:41 -08:00
..
_support
base_sdk_tests fix(sdk): backport #45961 to lts/1.108.x 2026-11-07 17:55:52 -08:00
benchmarks test(benchmarks): benchmark Presidio's first-frame wait over many leading reads and a frame split into many reads 2026-11-25 02:16:49 -08:00
code_coverage_tests Merge remote-tracking branch 'origin/lts/1.108.x' into litellm_backport_mantle_gemma_tools_lts_1_108_x 2026-11-24 11:42:04 -08:00
documentation_tests fix(proxy): let configured pass-through endpoints outrank built-in provider prefix routes (#44133) 2026-10-10 12:26:17 -07:00
e2e test(e2e): remove the secret manager suite (#51241) 2026-11-11 15:05:21 -08:00
e2e_harness test(e2e): retire the quiet_stack lock and batch the claude_code model registration (#49984) 2026-11-06 17:27:13 -08:00
fixtures test: migrate tests/llm_translation into unit, integration and e2e tiers (#45759) 2026-10-11 07:58:53 +00:00
harness_e2e
integration Merge pull request #54155 from zoveki/litellm_lts_image_edit_markup 2026-11-25 04:19:57 +00:00
rust-python-harness docs(agents): ban semicolons and colons in human-facing text (#45684) 2026-10-09 16:36:32 -07:00
test_litellm_rust test(rust-bridge): select native routes per test without LITELLM_RUST (#46620) 2026-10-15 09:12:08 -07:00
typing fix: support OpenAI SDK 3 while retaining SDK 2 compatibility (#44927) 2026-10-09 19:45:50 -07:00
unit fix(guardrails): keep Claude Code's billing header and each system block in place on /v1/messages 2026-11-25 07:46:41 -08:00
windows_tests test: move packaging and install checks off CircleCI build_and_test (#45757) 2026-10-10 09:33:51 -07:00
__init__.py
_fake_openai_endpoint_server.py
_flush_vcr_cache.py
_live_test_helpers.py
_master_key.py
_openai_record_replay_proxy.py
_process_helpers.py
_vcr_conftest_common.py test: migrate tests/llm_translation into unit, integration and e2e tiers (#45759) 2026-10-11 07:58:53 +00:00
_vcr_redis_persister.py
_wait_helpers.py
_ws_vcr.py
AGENTS.md docs(agents): ban semicolons and colons in human-facing text (#45684) 2026-10-09 16:36:32 -07:00
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 test: migrate tests/llm_translation into unit, integration and e2e tiers (#45759) 2026-10-11 07:58:53 +00:00
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.