litellm/tests
narmstrong-berry 98e10fcbf3
fix(messages): schedule native unary cache writes after the call returns and hold them until a follow-up mcp call reads the cache on rust
Python's @client schedules its unary cache write at its own end and the MCP gateway's next call reaches its cache read without yielding, so with a tool name no server has main reads for every inner call before any write lands. The native call queued its write inside the call and yields before its read, so each inner write landed before the next read. The async messages entry now collects the call's unary writes and schedules them once the call returns, and a write waits while a later call sharing its Logging has not yet read the cache
2026-11-11 20:35:59 +00:00
..
_support feat(mcp): add an opt-in per-server setting to skip MCP tool output validation (#49961) 2026-11-03 20:42:10 -08:00
audio_tests feat(vertex-ai)!: support gemini 3.1 flash tts (#31915) 2026-10-21 04:18:42 +00:00
base_sdk_tests feat(packaging): build litellm-proxy gateway wheels (#49605) 2026-11-05 16:37:12 -08:00
basic_proxy_startup_tests feat(docker)!: one shipped image and one entrypoint beside the Dockerfile (#43332) 2026-11-10 18:32:16 -08:00
benchmarks fix(realtime)!: send the Gemini Live setup at the first content so session.update settings apply (#39864) 2026-10-30 01:31:39 -07:00
code_coverage_tests refactor(model-cost): move the cost map inputs, fetch and register_model overlay into Rust (#50501) 2026-11-10 02:37:35 +00:00
documentation_tests
e2e feat(docker)!: one shipped image and one entrypoint beside the Dockerfile (#43332) 2026-11-10 18:32:16 -08:00
e2e_harness test(e2e): add a Codex row where a sub-agent must read the task its parent hands it (#50494) 2026-11-07 21:16:39 +00:00
fixtures
harness_e2e
integration fix(vertex_ai): bill gemini image text, thinking and priority tokens at their own rates (#51017) 2026-11-11 02:50:55 +00:00
rust-python-harness fix(messages): schedule native unary cache writes after the call returns and hold them until a follow-up mcp call reads the cache on rust 2026-11-11 20:35:59 +00:00
test_litellm_rust fix(messages): deliver stream bytes read before a cut, keep wide reply numbers and follow python's redirect limit on rust 2026-11-11 16:54:01 +00:00
typing
unit fix(messages): join already buffered stream reads and trim the env api key as python does on rust 2026-11-11 15:14:23 +00:00
windows_tests refactor(rust-bridge): require the native extension (#48852) 2026-10-28 13:16:56 -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
_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.