def test_processing_zoom_to_scene_request(self): self.app._perform_deferred_reload(application.ReloadParams(True)) self.app._viewer.zoom_to_scene.assert_called_once()
def test_skipping_zoom_to_scene(self): self.app._perform_deferred_reload(application.ReloadParams(False)) self.app._viewer.zoom_to_scene.assert_not_called()
def test_executing_deferred_initialization(self): self.app._deferred_reload_request = application.ReloadParams(False) self.app._tick() self.app._viewer.initialize.assert_called_once()