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

Method test_create_simple

tests/chat/test_response_models.py:31–36  ·  view source on GitHub ↗

Test creating a simple response.

(self)

Source from the content-addressed store, hash-verified

29 """Tests for CompletionResponse model."""
30
31 def test_create_simple(self):
32 """Test creating a simple response."""
33 resp = CompletionResponse(response="Hello!")
34 assert resp.response == "Hello!"
35 assert resp.tool_calls == []
36 assert resp.reasoning_content is None
37
38 def test_create_with_tool_calls(self):
39 """Test creating response with tool calls."""

Callers

nothing calls this directly

Calls 1

CompletionResponseClass · 0.90

Tested by

no test coverage detected