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 create_answers(user, reports): catalogue = create_catalogue("Questions for Mechanical engineer", user) document = open(os.path.join(BASE, 'fixtures/answers.yml'), 'r') answers = yaml.load(document) questions = [] for answer in answers: questions.append(create_question(catalogue, answer["question"])) for report in reports: create_answers_for_report(report, catalogue, questions, answers) create_events_for_reports(report, questions)
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/'