litellm/tests/test_litellm/integrations
Julio Quinteros Pro 8d15996b5a test: Fix flaky tests with proper mocking and skip conditions
1. test_acompletion_with_mcp_streaming_metadata_in_correct_chunks:
   - Moved stream consumption inside patch context to avoid real API calls
   - The previous implementation had assertions outside the `with patch(...)`
     block, causing real OpenAI API calls when consuming the stream

2. TestCheckResponsesCost tests:
   - Added skip condition when litellm_enterprise module is not available
   - These tests import from litellm_enterprise.proxy.common_utils.check_responses_cost
     which is only available in the enterprise version
2026-02-15 13:08:30 -03:00
..
arize add test for dynamic project name in metadata 2026-02-11 15:45:47 +05:30
azure_storage Fixing circular reference for azure storage 2026-01-14 16:11:55 -08:00
bitbucket
cloudzero fix: test 2026-01-09 11:23:47 +09:00
datadog feat: add datadog cost management support and fix startup callback issue (#19584) 2026-01-22 19:52:14 -08:00
dotprompt
focus fix: test 2026-01-09 11:23:47 +09:00
gcs_bucket
gcs_pubsub
gitlab TestEncryptResponseId 2026-01-07 21:03:22 +05:30
langfuse
levo
open_telemetry/data
SlackAlerting
websearch_interception Add tests for WebSearch interception with chat completions API 2026-02-09 13:41:29 +05:30
test_agentops.py
test_anthropic_cache_control_hook.py
test_athina.py
test_azure_sentinel.py
test_braintrust_logging.py
test_braintrust_span_name.py
test_custom_guardrail_recursion.py fix: recursive pydantic issue (#19531) 2026-01-22 19:56:41 -08:00
test_custom_guardrail.py fix: anthropic during call guardrail error 2026-01-14 13:37:01 +09:00
test_custom_prompt_management.py
test_deepeval.py
test_langfuse_otel.py Litellm fix langfuse otel trace (#20382) 2026-02-03 22:40:19 -08:00
test_langfuse.py Remove redundant sys.modules cleanup in Langfuse test tearDown 2026-02-15 12:26:02 -03:00
test_langsmith_init.py
test_mlflow.py
test_openmeter.py
test_opentelemetry_dynamic_imports.py Make grpc dependency optional (#19447) 2026-01-20 19:03:52 -08:00
test_opentelemetry.py fix(otel): auto-infer otlp_http exporter when endpoint is configured (#20438) 2026-02-10 09:33:16 -08:00
test_prometheus_cache_metrics.py feat(prometheus): add caching metrics (#18755) 2026-01-07 21:29:04 +05:30
test_prometheus_client_ip_user_agent.py feat: add clientip and user agent in metrics (#19717) 2026-01-25 23:07:19 -08:00
test_prometheus_invalid_key_filtering.py refactor(prometheus): skip metrics for invalid API key requests (#18788) 2026-01-07 17:14:14 -08:00
test_prometheus_labels.py fix(prometheus): sanitize label values to prevent metric scrape failures (#20600) 2026-02-09 15:48:59 -08:00
test_prometheus_metric_name_consistency.py
test_prometheus_missing_metrics.py add callbacks and labels to prometheus (#19708) 2026-01-25 23:03:23 -08:00
test_prometheus_queue_guardrail_metrics.py
test_prometheus_services.py fix(proxy): resolve high CPU when router_settings in DB by avoiding REGISTRY.collect() in PrometheusServicesLogger (#20087) 2026-01-30 14:01:45 -08:00
test_prometheus_user_team_metrics.py Metrics prometheus user team count (#19520) 2026-01-22 08:17:15 -08:00
test_responses_background_cost.py test: Fix flaky tests with proper mocking and skip conditions 2026-02-15 13:08:30 -03:00
test_s3_v2.py
test_weave_otel.py