Exemple #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)
Exemple #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
Exemple #3
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"
Exemple #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)
     self.url = '/dashboard/interviews/' + str(
         self.interview.id) + '/events/'
Exemple #5
0
def load_candidate(user, full_name, cv):
    first_name, second_name, email = parse_name(full_name)
    return create_candidate(user, user.company, cv, first_name, second_name, email)