Set additive=True for additive scene loading.
(self, sut: SceneAPI, mock_conn: MagicMock)
| 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.""" |
| 129 | mock_conn.send_request.return_value = {} |
| 130 | |
| 131 | sut.load(name="UI", additive=True) |
| 132 | |
| 133 | params = mock_conn.send_request.call_args[0][1] |
| 134 | assert params["additive"] is True |
| 135 | |
| 136 | def test_load_default_not_additive(self, sut: SceneAPI, mock_conn: MagicMock) -> None: |
| 137 | """Default additive is False.""" |