Esempio n. 1
0
 def test_everything_correct(self):
     form = CandidateProfileForm(
         instance=self.candidate,
         data=test_user_data["candidate"]["profile"])
     self.assertTrue(form.is_valid())
Esempio n. 2
0
 def test_health_conditions_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(
         form.fields["health_conditions"].label == "Health conditions")
Esempio n. 3
0
 def test_veteran_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["veteran"].label == "Veteran")
Esempio n. 4
0
 def test_ethnicity_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["ethnicity"].label == "Ethnicity")
Esempio n. 5
0
 def test_race_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["race"].label == "Race")
Esempio n. 6
0
 def test_portfolio_website_field_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(
         form.fields["portfolio_website"].label == "Portfolio website")
Esempio n. 7
0
 def test_gender_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["gender"].label == "Gender")
Esempio n. 8
0
 def test_phone_field_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["phone"].label == "Phone")
Esempio n. 9
0
 def test_zip_code_field_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["zip_code"].label == "Zip code")
Esempio n. 10
0
 def test_address_field_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["address_line"].label == "Address line")
Esempio n. 11
0
 def test_email_field_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["email"].label == "Email")
Esempio n. 12
0
 def test_last_name_field_label(self):
     form = CandidateProfileForm(instance=self.candidate)
     self.assertTrue(form.fields["last_name"].label == "Last name")