litellm/tests
dingdangmao f8de7a7312 test(otel): cover tool-call parts and streamed finish-reason aggregation
Regression tests for #45796:
- `_transform_messages_to_otel_semantic_conventions` emits GenAI
  `{"type": "tool_call", id/name/arguments}` parts for both dict and
  pydantic messages (previously dropped for non-dict objects and never
  emitted as parts at all).
- `ChunkProcessor.build_base_response` aggregates a stream whose chunks
  carried tool-call deltas but no explicit finish_reason to
  "tool_calls" instead of the default "stop".

Signed-off-by: apex-mochen <2756823972@qq.com>
2026-10-12 10:56:17 +08:00
..
_support
base_sdk_tests
benchmarks
code_coverage_tests test: remove pass-through and user_api_key_auth coverage scripts that no CI job runs (#45969) 2026-10-11 14:44:35 -07:00
documentation_tests
e2e test: migrate proxy security, schema migration and MCP legacy tests (#45937) 2026-10-11 16:17:24 -07:00
e2e_harness ci: run every CircleCI check from the integration workflow (#45938) 2026-10-11 07:39:16 -07: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 test: migrate proxy security, schema migration and MCP legacy tests (#45937) 2026-10-11 16:17:24 -07:00
rust-python-harness
test_litellm_rust refactor(rust_bridge): route Python state reads through host modules (#45689) 2026-10-11 14:10:16 -07:00
typing
unit test(otel): cover tool-call parts and streamed finish-reason aggregation 2026-10-12 10:56:17 +08:00
windows_tests
__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
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.