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

Method test_immutable

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

Source from the content-addressed store, hash-verified

132 assert "ts" in d
133
134 def test_immutable(self) -> None:
135 from pydantic import ValidationError
136
137 msg = RegisterMessage()
138 with pytest.raises(ValidationError):
139 msg.instance_id = "new_id" # type: ignore
140
141
142class TestRegisteredMessage:

Callers

nothing calls this directly

Calls 1

RegisterMessageClass · 0.90

Tested by

no test coverage detected