def setUp(self): self.company = create_company() self.user = create_user(self.company) self.catalogue = create_catalogue(self.user) self.question = create_question(self.catalogue) self.job_position = create_job_position(self.user, self.company, create_uploaded_file(self.user)) self.candidate = create_candidate(self.user, self.company, create_uploaded_file(self.user)) self.interview = create_interview(self.user, self.catalogue, self.candidate, self.job_position)
def load_interview(day, time_slot): job_position = job_positions[random.randint(0, len(job_positions) - 1)] catalogue = catalogues[random.randint(0, len(catalogues) - 1)] candidate = generate_candidate(candidates) status = Interview.CLOSED if is_report else Interview.OPEN formatted_day = day.strftime('%Y-%m-%d') start = "%sT%s" % (formatted_day, time_slot[0]) end = "%sT%s" % (formatted_day, time_slot[1]) interviews.append(create_interview(user, catalogue, candidate, job_position, start, end, status))
def setUp(self): self.client = APIClient() self.company = create_company() self.user = create_user(self.company) self.catalogue = create_catalogue(self.user) self.question = create_question(self.catalogue) self.job_position = create_job_position(self.user, self.company, create_uploaded_file(self.user)) self.candidate = create_candidate(self.user, self.company, create_uploaded_file(self.user)) self.interview = create_interview(self.user, self.catalogue, self.candidate, self.job_position) InterviewList.create_interview_session = self.fake_session
def setUp(self): self.client = APIClient() self.company = create_company() self.user = create_user(self.company) self.catalogue = create_catalogue(self.user) self.question = create_question(self.catalogue) self.job_position = create_job_position( self.user, self.company, create_uploaded_file(self.user)) self.candidate = create_candidate(self.user, self.company, create_uploaded_file(self.user)) self.interview = create_interview(self.user, self.catalogue, self.candidate, self.job_position) InterviewList.create_interview_session = lambda x: "test_session" InterviewRoomView.generate_opentok_token = lambda x, y: "test_token"
def setUp(self): self.client = APIClient() self.company = create_company() self.user = create_user(self.company) self.catalogue = create_catalogue(self.user) self.question = create_question(self.catalogue) self.job_position = create_job_position( self.user, self.company, create_uploaded_file(self.user)) self.candidate = create_candidate(self.user, self.company, create_uploaded_file(self.user)) self.interview = create_interview(self.user, self.catalogue, self.candidate, self.job_position) self.url = '/dashboard/interviews/' + str( self.interview.id) + '/events/'