litellm/tests/test_litellm/responses
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
..
litellm_completion_transformation Merge pull request #20783 from BerriAI/litellm_oss_staging_02_09_2026 2026-02-10 18:02:14 +05:30
mcp test: Fix flaky tests with proper mocking and skip conditions 2026-02-15 13:08:30 -03:00
test_no_duplicate_spend_logs.py test_async_no_duplicate_spend_logs 2025-12-06 16:14:56 -08:00
test_null_test_fix.py Fix: Responses content can't be none 2026-01-14 12:13:18 +05:30
test_responses_api_request_body.py [Feat] Adds support for server-side compaction on the OpenAI Responses API context_management (#21058) 2026-02-12 10:00:30 -08:00
test_responses_utils.py fix(vertex_ai): forward extra_body to completion transformation handler (#20950) 2026-02-13 18:25:32 +05:30
test_text_format_conversion.py Fix: test_text_format_to_text_conversion - properly mock handler to avoid API calls 2026-01-08 16:37:12 +05:30