Include groupPattern key when group_pattern is provided.
(self, sut: TestAPI, mock_conn: MagicMock)
| 87 | assert params["assemblies"] == ["Tests.EditMode"] |
| 88 | |
| 89 | def test_run_with_group_pattern(self, sut: TestAPI, mock_conn: MagicMock) -> None: |
| 90 | """Include groupPattern key when group_pattern is provided.""" |
| 91 | mock_conn.send_request.return_value = {} |
| 92 | |
| 93 | sut.run(group_pattern=".*Integration.*") |
| 94 | |
| 95 | params = mock_conn.send_request.call_args[0][1] |
| 96 | assert params["groupPattern"] == ".*Integration.*" |
| 97 | |
| 98 | def test_run_without_optional_params_excludes_keys(self, sut: TestAPI, mock_conn: MagicMock) -> None: |
| 99 | """Exclude optional keys when not provided.""" |