예제 #1
0
 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)
예제 #2
0
 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
예제 #3
0
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)
예제 #4
0
 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"
예제 #5
0
 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/'