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

Method test_execute

tests/commands/definitions/test_exit_command.py:23–30  ·  view source on GitHub ↗

Test executing the exit command.

(self, command)

Source from the content-addressed store, hash-verified

21
22 @pytest.mark.asyncio
23 async def test_execute(self, command):
24 """Test executing the exit command."""
25 result = await command.execute()
26
27 # Check result
28 assert result.success is True
29 assert result.should_exit is True
30 assert "Goodbye" in result.output or result.output is not None

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected