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

Method test_command_handled

tests/chat/test_ui_manager_coverage.py:695–702  ·  view source on GitHub ↗
(self, ui_manager)

Source from the content-addressed store, hash-verified

693
694 @pytest.mark.asyncio
695 async def test_command_handled(self, ui_manager):
696 with (
697 patch("mcp_cli.chat.ui_manager.register_all_commands"),
698 patch("mcp_cli.adapters.chat.ChatCommandAdapter") as MockAdapter,
699 ):
700 MockAdapter.handle_command = AsyncMock(return_value=True)
701 result = await ui_manager.handle_command("/help")
702 assert result is True
703
704 @pytest.mark.asyncio
705 async def test_command_not_handled(self, ui_manager):

Callers

nothing calls this directly

Calls 1

handle_commandMethod · 0.45

Tested by

no test coverage detected