File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ async def _test():
2020 ) as mock_process :
2121 # Mock the async generator
2222 async def mock_generator ():
23- yield AssistantMessage (content = [TextBlock (text = "4" )], model = "claude-opus-4-1-20250805" )
23+ yield AssistantMessage (
24+ content = [TextBlock (text = "4" )], model = "claude-opus-4-1-20250805"
25+ )
2426
2527 mock_process .return_value = mock_generator ()
2628
@@ -43,7 +45,10 @@ async def _test():
4345 ) as mock_process :
4446
4547 async def mock_generator ():
46- yield AssistantMessage (content = [TextBlock (text = "Hello!" )], model = "claude-opus-4-1-20250805" )
48+ yield AssistantMessage (
49+ content = [TextBlock (text = "Hello!" )],
50+ model = "claude-opus-4-1-20250805" ,
51+ )
4752
4853 mock_process .return_value = mock_generator ()
4954
Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ def test_assistant_message_with_text(self):
3232 def test_assistant_message_with_thinking (self ):
3333 """Test creating an AssistantMessage with thinking content."""
3434 thinking_block = ThinkingBlock (thinking = "I'm thinking..." , signature = "sig-123" )
35- msg = AssistantMessage (content = [thinking_block ], model = "claude-opus-4-1-20250805" )
35+ msg = AssistantMessage (
36+ content = [thinking_block ], model = "claude-opus-4-1-20250805"
37+ )
3638 assert len (msg .content ) == 1
3739 assert msg .content [0 ].thinking == "I'm thinking..."
3840 assert msg .content [0 ].signature == "sig-123"
You can’t perform that action at this time.
0 commit comments