litellm/tests
mateo-berri 27c828d3bc fix(responses): keep leading system messages in client order once one goes to input on the bridge
A message-level cache_control on the first of two leading string system
messages sent that message to input as a breakpoint-carrying part, while
the unmarked second one still joined instructions. The Responses API reads
instructions before input, so the model saw the second message first and
followed the first one instead

The leading run that may join instructions now stops at the first message
that is not a system message with string content. A list-content system
message ends the run the same way, so the system messages after it keep
their place in input

Port of the matching change on #51783 to lts/1.108.x
2026-11-13 22:43: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 fix(anthropic): keep trailing user messages with None or empty list content (#41397) 2026-10-16 07:41:05 +00:00
code_coverage_tests fix(router): route decisions calls only to deployments whose provider supports decisions (#48175) 2026-11-11 14:40:12 -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 fix(responses): send cache_control as a prompt_cache_breakpoint on the chat-to-Responses bridge 2026-11-13 21:37:11 -08: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(responses): keep leading system messages in client order once one goes to input on the bridge 2026-11-13 22:43: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 refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
_fake_openai_endpoint_server.py
_flush_vcr_cache.py
_live_test_helpers.py
_master_key.py fix(security): remove the publicly known master key from the repo (#44718) 2026-10-06 10:55:24 -07:00
_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 test: move 76 live top-level tests to offline unit and integration coverage (#45352) 2026-10-08 10:33:35 -07:00
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.