Skip to content

Commit 42269cd

Browse files
committed
test(anthropic): update mock to async get_final_message
AsyncMessageStream.get_final_message() is async; sync mock caused TypeError when awaited. Update _MockAnthropicStream to match the real SDK interface after fix(anthropic) added the await.
1 parent afe2545 commit 42269cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/providers/test_anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ async def _iter_events(self):
337337
for ev in self._events:
338338
yield ev
339339

340-
def get_final_message(self):
340+
async def get_final_message(self):
341341
return self._final_message
342342

343343

0 commit comments

Comments
 (0)