Include path key when save path is provided.
(self, sut: SceneAPI, mock_conn: MagicMock)
| 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.""" |