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

Method test_inspect_with_style

tests/test_uitree_api.py:170–180  ·  view source on GitHub ↗
(self, sut: UITreeAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

168 assert "ref" not in params
169
170 def test_inspect_with_style(self, sut: UITreeAPI, mock_conn: MagicMock) -> None:
171 mock_conn.send_request.return_value = {
172 "ref": "ref_3",
173 "resolvedStyle": {"color": "rgba(255,255,255,1)"},
174 }
175
176 sut.inspect(ref="ref_3", include_style=True)
177
178 call_args = mock_conn.send_request.call_args
179 params = call_args[0][1]
180 assert params["include_style"] is True
181
182 def test_inspect_with_children(self, sut: UITreeAPI, mock_conn: MagicMock) -> None:
183 mock_conn.send_request.return_value = {

Callers

nothing calls this directly

Calls 1

inspectMethod · 0.45

Tested by

no test coverage detected