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

Method side_effect

tests/chat/test_chat_handler_coverage.py:562–566  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

560 call_count = [0]
561
562 async def side_effect():
563 call_count[0] += 1
564 if call_count[0] == 1:
565 raise KeyboardInterrupt()
566 return "exit"
567
568 ui.get_user_input = side_effect
569 ctx = _make_ctx()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected