MCPcopy Create free account
hub / github.com/IBM/mcp-cli / mock_aiter

Method mock_aiter

tests/chat/test_streaming_handler.py:798–800  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

796 handler = StreamingResponseHandler(display, runtime_config=rc)
797
798 async def mock_aiter():
799 await asyncio.sleep(10) # Exceeds first_chunk timeout (0.01s)
800 yield {"content": "never reached"} # pragma: no cover
801
802 client = MagicMock()
803 client.create_completion = MagicMock(return_value=mock_aiter())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected