Example #1
0
 def delete(self, scene_id):
     """
     Delete given scene.
     """
     scene = shots_service.get_scene(scene_id)
     user_service.check_manager_project_access(scene["project_id"])
     shots_service.remove_scene(scene_id)
     return "", 204
Example #2
0
 def delete(self, scene_id):
     """
     Delete given scene.
     """
     permissions.check_manager_permissions()
     deleted_scene = shots_service.remove_scene(scene_id)
     return deleted_scene, 204
Example #3
0
 def test_remove_scene(self):
     scene_id = self.scene.id
     shots_service.remove_scene(scene_id)
     with pytest.raises(SceneNotFoundException):
         shots_service.get_scene(scene_id)