Example #1
0
 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()
Example #2
0
 def test_skipping_zoom_to_scene(self):
   self.app._perform_deferred_reload(application.ReloadParams(False))
   self.app._viewer.zoom_to_scene.assert_not_called()
Example #3
0
 def test_executing_deferred_initialization(self):
   self.app._deferred_reload_request = application.ReloadParams(False)
   self.app._tick()
   self.app._viewer.initialize.assert_called_once()