Send 'console' as the command name.
(self, sut: ConsoleAPI, mock_conn: MagicMock)
| 25 | """get() メソッドのテスト""" |
| 26 | |
| 27 | def test_get_sends_console_command(self, sut: ConsoleAPI, mock_conn: MagicMock) -> None: |
| 28 | """Send 'console' 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] == "console" |
| 34 | |
| 35 | def test_get_sends_read_action_with_defaults(self, sut: ConsoleAPI, mock_conn: MagicMock) -> None: |
| 36 | """Send action='read' with format='detailed' and include_stacktrace=False.""" |