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

Function test_progress_callback_called

tests/tools/test_tool_index.py:212–217  ·  view source on GitHub ↗

on_progress callback is called during initialize.

(manager)

Source from the content-addressed store, hash-verified

210
211@pytest.mark.asyncio
212async def test_progress_callback_called(manager):
213 """on_progress callback is called during initialize."""
214 progress_msgs: list[str] = []
215 manager._on_progress = lambda msg: progress_msgs.append(msg)
216 manager._report_progress("test message")
217 assert "test message" in progress_msgs
218
219
220@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

_report_progressMethod · 0.80

Tested by

no test coverage detected