Example #1
0
 def test_create_scene(self):
     scene_name = "NSC01"
     parent_id = str(self.sequence.id)
     scene = shots_service.create_scene(str(self.project.id), parent_id,
                                        scene_name)
     self.assertEqual(scene["name"], scene_name)
     self.assertEqual(scene["parent_id"], parent_id)
Example #2
0
 def post(self, project_id):
     """
     Create a shot for given project.
     """
     (sequence_id, name) = self.get_arguments()
     projects_service.get_project(project_id)
     permissions.check_manager_permissions()
     scene = shots_service.create_scene(project_id, sequence_id, name)
     return scene, 201