Send action='execute' with the menu path.
(self, sut: MenuAPI, mock_conn: MagicMock)
| 33 | assert mock_conn.send_request.call_args[0][0] == "menu" |
| 34 | |
| 35 | def test_execute_sends_path(self, sut: MenuAPI, mock_conn: MagicMock) -> None: |
| 36 | """Send action='execute' with the menu path.""" |
| 37 | mock_conn.send_request.return_value = {} |
| 38 | |
| 39 | sut.execute("Window/General/Console") |
| 40 | |
| 41 | params = mock_conn.send_request.call_args[0][1] |
| 42 | assert params == {"action": "execute", "path": "Window/General/Console"} |
| 43 | |
| 44 | def test_execute_returns_response(self, sut: MenuAPI, mock_conn: MagicMock) -> None: |
| 45 | """Return the execution result response.""" |