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

Method test_clear_sends_console_command

tests/test_console_api.py:113–119  ·  view source on GitHub ↗

Send 'console' as the command name.

(self, sut: ConsoleAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

111 """clear() メソッドのテスト"""
112
113 def test_clear_sends_console_command(self, sut: ConsoleAPI, mock_conn: MagicMock) -> None:
114 """Send 'console' as the command name."""
115 mock_conn.send_request.return_value = {}
116
117 sut.clear()
118
119 assert mock_conn.send_request.call_args[0][0] == "console"
120
121 def test_clear_sends_clear_action(self, sut: ConsoleAPI, mock_conn: MagicMock) -> None:
122 """Send action='clear' to clear console logs."""

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected