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

Method test_valid_message

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

Source from the content-addressed store, hash-verified

379 """Test parse_message function"""
380
381 def test_valid_message(self) -> None:
382 data = {"type": "REQUEST", "id": "123", "command": "test"}
383 result = parse_message(data)
384 assert result == data
385
386 def test_missing_type(self) -> None:
387 data = {"id": "123", "command": "test"}

Callers

nothing calls this directly

Calls 1

parse_messageFunction · 0.90

Tested by

no test coverage detected