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

Method test_get_sends_selection_command

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

Send 'selection' as the command name.

(self, sut: SelectionAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

25 """get() メソッドのテスト"""
26
27 def test_get_sends_selection_command(self, sut: SelectionAPI, mock_conn: MagicMock) -> None:
28 """Send 'selection' as the command name."""
29 mock_conn.send_request.return_value = {}
30
31 sut.get()
32
33 assert mock_conn.send_request.call_args[0][0] == "selection"
34
35 def test_get_sends_get_action(self, sut: SelectionAPI, mock_conn: MagicMock) -> None:
36 """Send action='get' to retrieve current selection."""

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected