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

Method test_create

tests/chat/test_models.py:55–59  ·  view source on GitHub ↗

Test creating a FunctionCallData.

(self)

Source from the content-addressed store, hash-verified

53 """Tests for FunctionCallData model."""
54
55 def test_create(self):
56 """Test creating a FunctionCallData."""
57 fc = FunctionCallData(name="sqrt", arguments='{"x": 18}')
58 assert fc.name == "sqrt"
59 assert fc.arguments == '{"x": 18}'
60
61 def test_get_arguments_dict(self):
62 """Test parsing arguments to dict."""

Callers

nothing calls this directly

Calls 1

FunctionCallDataClass · 0.90

Tested by

no test coverage detected