def test_get_schedule_items(self): items = schedule_service.get_schedule_items(self.project.id) self.assertEquals(len(items), 1) self.generate_fixture_shot_task() items = schedule_service.get_schedule_items(self.project.id) self.assertEquals(len(items), 2) task_type_ids = [item["task_type_id"] for item in items] self.assertTrue(str(self.task_type.id) in task_type_ids) self.assertTrue(str(self.task_type_animation.id) in task_type_ids) self.shot_task.delete() items = schedule_service.get_schedule_items(self.project.id) self.assertEquals(len(items), 1)
def get(self, project_id): """ Retrieve schedule items for given production --- tags: - Projects parameters: - in: path name: project_id required: true schema: type: UUID example: 5dc235ec-125e-4ba5-b1db-604d4babc315 responses: 200: description: All schedule items of given production """ user_service.check_project_access(project_id) user_service.block_access_to_vendor() return schedule_service.get_schedule_items(project_id)
def get(self, project_id): user_service.check_project_access(project_id) return schedule_service.get_schedule_items(project_id)
def get(self, project_id): user_service.check_project_access(project_id) user_service.block_access_to_vendor() return schedule_service.get_schedule_items(project_id)