(self, ui_manager)
| 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): |
nothing calls this directly
no test coverage detected