MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / test_run_with_group_pattern

Method test_run_with_group_pattern

tests/test_tests_api.py:89–96  ·  view source on GitHub ↗

Include groupPattern key when group_pattern is provided.

(self, sut: TestAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected