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

Method test_inspect_with_ref

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

Source from the content-addressed store, hash-verified

139 """inspect() メソッドのテスト"""
140
141 def test_inspect_with_ref(self, sut: UITreeAPI, mock_conn: MagicMock) -> None:
142 mock_conn.send_request.return_value = {
143 "ref": "ref_3",
144 "type": "Button",
145 }
146
147 sut.inspect(ref="ref_3")
148
149 call_args = mock_conn.send_request.call_args
150 params = call_args[0][1]
151 assert params["action"] == "inspect"
152 assert params["ref"] == "ref_3"
153 assert params["include_style"] is False
154 assert params["include_children"] is False
155
156 def test_inspect_with_panel_and_name(self, sut: UITreeAPI, mock_conn: MagicMock) -> None:
157 mock_conn.send_request.return_value = {

Callers

nothing calls this directly

Calls 1

inspectMethod · 0.45

Tested by

no test coverage detected