We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d5e35e commit 2209a80Copy full SHA for 2209a80
posthog/test/ai/anthropic/test_anthropic.py
@@ -484,7 +484,7 @@ async def mock_async_stream():
484
# This matches the actual behavior when stream=True with await
485
async def async_create_wrapper(**kwargs):
486
return mock_async_stream()
487
-
+
488
with patch(
489
"anthropic.resources.messages.AsyncMessages.create",
490
side_effect=async_create_wrapper,
@@ -933,7 +933,7 @@ async def mock_async_generator():
933
# Convert regular generator to async generator
934
for event in mock_anthropic_stream_with_tools:
935
yield event
936
937
async def mock_async_create(**kwargs):
938
# Return the async generator (to be awaited by the implementation)
939
return mock_async_generator()
0 commit comments