| 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 = { |