MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / test_success_result

Method test_success_result

tests/test_protocol.py:192–203  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

190 """Test CommandResultMessage"""
191
192 def test_success_result(self) -> None:
193 msg = CommandResultMessage(
194 id="req-123",
195 success=True,
196 data={"isPlaying": True},
197 )
198 d = msg.to_dict()
199
200 assert d["type"] == "COMMAND_RESULT"
201 assert d["id"] == "req-123"
202 assert d["success"] is True
203 assert d["data"] == {"isPlaying": True}
204
205 def test_error_result(self) -> None:
206 msg = CommandResultMessage(

Callers

nothing calls this directly

Calls 2

to_dictMethod · 0.45

Tested by

no test coverage detected