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

Method test_create

tests/chat/test_models.py:267–272  ·  view source on GitHub ↗

Test creating state.

(self)

Source from the content-addressed store, hash-verified

265 """Tests for ToolExecutionState model."""
266
267 def test_create(self):
268 """Test creating state."""
269 state = ToolExecutionState(name="sqrt", arguments={"x": 18}, start_time=1000.0)
270 assert state.name == "sqrt"
271 assert state.start_time == 1000.0
272 assert state.completed is False
273
274 def test_elapsed_time(self):
275 """Test elapsed_time calculation."""

Callers

nothing calls this directly

Calls 1

ToolExecutionStateClass · 0.90

Tested by

no test coverage detected