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

Method mock_aiter

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

Source from the content-addressed store, hash-verified

451 ]
452
453 async def mock_aiter():
454 for chunk in chunks:
455 yield chunk
456
457 client = MagicMock()
458 client.create_completion = MagicMock(return_value=mock_aiter())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected