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

Method test_execute_sends_path

tests/test_menu_api.py:35–42  ·  view source on GitHub ↗

Send action='execute' with the menu path.

(self, sut: MenuAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected