litellm/tests/test_litellm/responses/mcp
Julio Quinteros Pro c3346962a9 fix: replace silent if-hasattr guards with unconditional assertions in MCP streaming tests
The `if hasattr(...)` guards in test_acompletion_with_mcp_adds_metadata_to_streaming
and test_acompletion_with_mcp_streaming_metadata_in_correct_chunks could silently skip
the provider_specific_fields assertions if chunks lacked choices/delta. Replace with
unconditional `assert hasattr(...)` so failures surface immediately.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-17 21:42:31 -03:00
..
test_chat_completions_handler.py fix: replace silent if-hasattr guards with unconditional assertions in MCP streaming tests 2026-02-17 21:42:31 -03:00
test_litellm_proxy_mcp_handler.py test: add test 2026-01-21 14:51:56 +09:00