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

Method test_save_with_path

tests/test_scene_api.py:167–174  ·  view source on GitHub ↗

Include path key when save path is provided.

(self, sut: SceneAPI, mock_conn: MagicMock)

Source from the content-addressed store, hash-verified

165 assert params["action"] == "save"
166
167 def test_save_with_path(self, sut: SceneAPI, mock_conn: MagicMock) -> None:
168 """Include path key when save path is provided."""
169 mock_conn.send_request.return_value = {}
170
171 sut.save(path="Assets/Scenes/NewScene.unity")
172
173 params = mock_conn.send_request.call_args[0][1]
174 assert params["path"] == "Assets/Scenes/NewScene.unity"
175
176 def test_save_without_path_excludes_path_key(self, sut: SceneAPI, mock_conn: MagicMock) -> None:
177 """Exclude path key when path is not provided."""

Callers

nothing calls this directly

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected