def update_job_setup(self):
     self.updated_job = create_dummy_instance(Job, True)
     self.responsibilities = create_dummy_instances(Responsibility, 2,
                                                    False)
     self.projects = create_dummy_instances(Project, 3, False)
     self.updated_job.projects.add(*self.projects)
     self.updated_job.responsibilities.add(*self.responsibilities)
     self.updated_job.save()
     self.update_url = reverse_url("job-detail",
                                   {'pk': self.updated_job.id})
     self.update_url += '?action=save'
 def get_list_of_project_ids(self, projects_quantity):
     new_projects = create_dummy_instances(Project, projects_quantity,
                                           False)
     project_ids = []
     for i in range(0, projects_quantity):
         project_ids.append(new_projects[i].id)
     return project_ids
 def create_dummy_tags(self):
     self.tags = create_dummy_instances(Tag, self.number_of_dummy_tags,
                                        False)
     self.tag_ids = [tag.id for tag in self.tags]
 def create_tags(self):
     return create_dummy_instances(Tag, 3, False)
 def get_new_tags_ids(self):
     new_tags = create_dummy_instances(Tag, 3, False)
     return [tag.id for tag in new_tags]
 def associate_post_with_tags(self):
     tags = create_dummy_instances(Tag, 3, False)
     self.post.tags.add(*tags)
     return self.post
 def create_job_setup(self):
     self.projects = create_dummy_instances(Project, 3, False)
 def create_new_responsibilities_instances(self, quantity):
     return create_dummy_instances(Responsibility, quantity, False)