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

Method test_from_dict_simple

tests/commands/models/test_cmd_models.py:127–134  ·  view source on GitHub ↗

Test from_dict with simple message.

(self)

Source from the content-addressed store, hash-verified

125 assert msg.name == "test_tool"
126
127 def test_from_dict_simple(self):
128 """Test from_dict with simple message."""
129 data = {"role": "user", "content": "Hello world"}
130
131 msg = Message.from_dict(data)
132
133 assert msg.role == MessageRole.USER
134 assert msg.content == "Hello world"
135
136 def test_from_dict_with_tool_calls(self):
137 """Test from_dict with tool calls."""

Callers

nothing calls this directly

Calls 1

from_dictMethod · 0.45

Tested by

no test coverage detected