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

Method test_basic_error

tests/commands/test_exceptions.py:15–20  ·  view source on GitHub ↗

Test basic error with just message.

(self)

Source from the content-addressed store, hash-verified

13 """Test CommandError base exception."""
14
15 def test_basic_error(self):
16 """Test basic error with just message."""
17 error = CommandError("Something went wrong")
18 assert str(error) == "Something went wrong"
19 assert error.message == "Something went wrong"
20 assert error.command is None
21
22 def test_error_with_command(self):
23 """Test error with command name."""

Callers

nothing calls this directly

Calls 1

CommandErrorClass · 0.90

Tested by

no test coverage detected