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

Function _make_display

tests/chat/test_streaming_handler.py:347–360  ·  view source on GitHub ↗

Build a mock StreamingDisplayManager.

()

Source from the content-addressed store, hash-verified

345
346
347def _make_display():
348 """Build a mock StreamingDisplayManager."""
349 display = MagicMock()
350 display.start_streaming = AsyncMock()
351 display.stop_streaming = AsyncMock(return_value="final content")
352 display.add_chunk = AsyncMock()
353 display.is_streaming = False
354
355 # Create a proper streaming_state mock
356 state = MagicMock()
357 state.chunks_received = 5
358 state.reasoning_content = None
359 display.streaming_state = state
360 return display
361
362
363def _make_runtime_config():

Calls

no outgoing calls

Tested by

no test coverage detected