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

Method test_run_with_play_mode

tests/test_tests_api.py:53–60  ·  view source on GitHub ↗

Send mode='play' when specified.

(self, sut: TestAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected