Send 'console' as the command name.
(self, sut: ConsoleAPI, mock_conn: MagicMock)
| 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.""" |