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

Method test_load_by_path

tests/test_scene_api.py:118–125  ·  view source on GitHub ↗

Include path key when path is provided.

(self, sut: SceneAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

116 assert params["name"] == "Main"
117
118 def test_load_by_path(self, sut: SceneAPI, mock_conn: MagicMock) -> None:
119 """Include path key when path is provided."""
120 mock_conn.send_request.return_value = {}
121
122 sut.load(path="Assets/Scenes/Main.unity")
123
124 params = mock_conn.send_request.call_args[0][1]
125 assert params["path"] == "Assets/Scenes/Main.unity"
126
127 def test_load_additive(self, sut: SceneAPI, mock_conn: MagicMock) -> None:
128 """Set additive=True for additive scene loading."""

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected