Send 'tests' as the command name.
(self, sut: TestAPI, mock_conn: MagicMock)
| 25 | """run() メソッドのテスト""" |
| 26 | |
| 27 | def test_run_sends_tests_command(self, sut: TestAPI, mock_conn: MagicMock) -> None: |
| 28 | """Send 'tests' as the command name.""" |
| 29 | mock_conn.send_request.return_value = {} |
| 30 | |
| 31 | sut.run() |
| 32 | |
| 33 | assert mock_conn.send_request.call_args[0][0] == "tests" |
| 34 | |
| 35 | def test_run_sends_run_action(self, sut: TestAPI, mock_conn: MagicMock) -> None: |
| 36 | """Send action='run' to execute tests.""" |