Build a mock StreamingDisplayManager.
()
| 345 | |
| 346 | |
| 347 | def _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 | |
| 363 | def _make_runtime_config(): |
no outgoing calls
no test coverage detected