Skip to content

Commit 3633372

Browse files
committed
test: simplify docstring to match package convention
1 parent 7502034 commit 3633372

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tests/strands/models/test_anthropic.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -939,12 +939,9 @@ def test_format_request_filters_location_source_document(model, model_id, max_to
939939

940940
@pytest.mark.asyncio
941941
async def test_stream_message_stop_no_pydantic_warnings(anthropic_client, model, agenerator, alist):
942-
"""Test that message_stop events with ParsedTextBlock content don't emit Pydantic warnings.
942+
"""Verify no Pydantic serialization warnings are emitted for message_stop events.
943943
944-
This test verifies the fix for issue #1746 where Pydantic serializer warnings
945-
were emitted when the Anthropic SDK returned ParsedTextBlock in message content.
946-
The fix avoids calling model_dump() on message_stop events, instead extracting
947-
only the stop_reason directly from the event.
944+
Regression test for https://github.com/strands-agents/sdk-python/issues/1746.
948945
"""
949946
# Create a mock message_stop event where model_dump() would emit warnings
950947
# The key is that the event has a .message attribute with .stop_reason

0 commit comments

Comments
 (0)