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

Method test_run_with_test_names

tests/test_tests_api.py:62–69  ·  view source on GitHub ↗

Include testNames key when test_names is provided.

(self, sut: TestAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

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."""
64 mock_conn.send_request.return_value = {}
65
66 sut.run(test_names=["MyTests.TestA", "MyTests.TestB"])
67
68 params = mock_conn.send_request.call_args[0][1]
69 assert params["testNames"] == ["MyTests.TestA", "MyTests.TestB"]
70
71 def test_run_with_categories(self, sut: TestAPI, mock_conn: MagicMock) -> None:
72 """Include categories key when categories is provided."""

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected