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

Method test_error_with_command

tests/commands/test_exceptions.py:22–26  ·  view source on GitHub ↗

Test error with command name.

(self)

Source from the content-addressed store, hash-verified

20 assert error.command is None
21
22 def test_error_with_command(self):
23 """Test error with command name."""
24 error = CommandError("Something went wrong", command="test-command")
25 assert error.message == "Something went wrong"
26 assert error.command == "test-command"
27
28
29class TestInvalidParameterError:

Callers

nothing calls this directly

Calls 1

CommandErrorClass · 0.90

Tested by

no test coverage detected