litellm/tests
user 6769c8b66f
[Fix] CI: license check for black 26.3.1 + skip disk_cache test without diskcache
- Add black to liccheck.ini Authorized Packages (MIT-licensed).
- pytest.importorskip("diskcache") at top of test_disk_cache.py so
  the test skips cleanly when diskcache isn't installed (it's no longer
  pulled in by the dev group after the CVE-2025-69872 mitigation).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-05 20:45:08 +00:00
..
agent_tests style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
audio_tests style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
basic_proxy_startup_tests build: migrate packaging, CI, and Docker from Poetry to uv (#25007) 2026-04-09 11:46:23 -07:00
batches_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
benchmarks [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
code_coverage_tests [Fix] CI: license check for black 26.3.1 + skip disk_cache test without diskcache 2026-05-05 20:45:08 +00:00
documentation_tests style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
enterprise [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
guardrails_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
image_gen_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
litellm [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
litellm-proxy-extras style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
litellm_core_utils [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
litellm_utils_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
llm_responses_api_testing [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
llm_translation [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
load_tests style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
local_testing [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
logging_callback_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
mcp_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
multi_instance_e2e_tests
ocr_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
old_proxy_tests/tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
openai_endpoints_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
otel_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
pass_through_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
pass_through_unit_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
proxy_admin_ui_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
proxy_e2e_anthropic_messages_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
proxy_security_tests style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
proxy_unit_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
router_unit_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
scim_tests
search_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
spend_tracking_tests chore(proxy): guard sensitive public endpoints 2026-04-30 11:52:47 -07:00
store_model_in_db_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
test_litellm [Fix] CI: license check for black 26.3.1 + skip disk_cache test without diskcache 2026-05-05 20:45:08 +00:00
unified_google_tests style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
vector_store_tests [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
windows_tests style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
__init__.py
_flush_vcr_cache.py tests(vcr): isolate cassette redis to CASSETTE_REDIS_URL 2026-05-01 12:32:59 -07:00
_vcr_redis_persister.py fix(tests): anchor VCR redis cassette key to repo root 2026-05-01 23:27:18 +00:00
eval_swe_bench.py Prompt Compression - add it to the proxy (#25729) 2026-04-20 15:08:00 -07:00
gettysburg.wav
large_text.py
openai_batch_completions.jsonl
README.MD
test_budget_management.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_callbacks_on_proxy.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_config.py
test_debug_warning.py
test_default_encoding_non_root.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_end_users.py
test_entrypoint.py
test_fallbacks.py
test_gpt5_azure_temperature_support.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_health.py chore(proxy): preserve readiness compatibility 2026-04-30 12:05:09 -07:00
test_keys.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_litellm_proxy_responses_config.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_logging.conf
test_models.py test: replace test_add_and_delete_models integration test with mock 2026-03-30 21:30:57 -07:00
test_new_vector_store_endpoints.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_openai_endpoints.py
test_organizations.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_otel_thread_leak.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_passthrough_endpoints.py [Security] Clear AWS Inspector CVE findings on Docker image 2026-05-05 20:21:15 +00:00
test_presidio_latency.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_proxy_server_non_root.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_ratelimit.py [Fix] test_ratelimit: skip over-limit cases that race with background RPM tracking 2026-04-11 13:08:59 -07:00
test_resource_cleanup.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_service_logger_otel.py
test_spend_logs.py
test_team.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_team_logging.py test: cleanup dead tests 2026-03-28 20:49:02 -07:00
test_team_members.py
test_users.py Litellm fix update bedrock models (#24947) 2026-04-01 19:22:54 -07:00

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/test_litellm

This folder can only run mock tests.