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

Method test_create_user_message

tests/chat/test_models.py:155–159  ·  view source on GitHub ↗

Test creating a user message.

(self)

Source from the content-addressed store, hash-verified

153 """Tests for Message model."""
154
155 def test_create_user_message(self):
156 """Test creating a user message."""
157 msg = Message(role=MessageRole.USER, content="Hello")
158 assert msg.role == MessageRole.USER
159 assert msg.content == "Hello"
160
161 def test_to_dict_simple(self):
162 """Test to_dict with simple message."""

Callers

nothing calls this directly

Calls 1

MessageClass · 0.90

Tested by

no test coverage detected