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 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/'
def load_position(user, position, job_spec): return create_job_position(user, user.company, job_spec, position)