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

Method test_execute_sends_menu_command

tests/test_menu_api.py:27–33  ·  view source on GitHub ↗

Send 'menu' as the command name.

(self, sut: MenuAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

25 """execute() メソッドのテスト"""
26
27 def test_execute_sends_menu_command(self, sut: MenuAPI, mock_conn: MagicMock) -> None:
28 """Send 'menu' as the command name."""
29 mock_conn.send_request.return_value = {}
30
31 sut.execute("Edit/Play")
32
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."""

Callers

nothing calls this directly

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected