Send mode='play' when specified.
(self, sut: TestAPI, mock_conn: MagicMock)
| 51 | assert params["mode"] == "edit" |
| 52 | |
| 53 | def test_run_with_play_mode(self, sut: TestAPI, mock_conn: MagicMock) -> None: |
| 54 | """Send mode='play' when specified.""" |
| 55 | mock_conn.send_request.return_value = {} |
| 56 | |
| 57 | sut.run(mode="play") |
| 58 | |
| 59 | params = mock_conn.send_request.call_args[0][1] |
| 60 | assert params["mode"] == "play" |
| 61 | |
| 62 | def test_run_with_test_names(self, sut: TestAPI, mock_conn: MagicMock) -> None: |
| 63 | """Include testNames key when test_names is provided.""" |