Skip to content

Commit

Permalink
Fixup changes
Browse files Browse the repository at this point in the history
Adding new ethnicities in the setup means I've had to tweak the tests a little to reflect the changes
  • Loading branch information
jonodrew committed Aug 9, 2019
1 parent 1de8b70 commit a81b4c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_reports.py
Expand Up @@ -64,7 +64,7 @@ def test_deferred_candidates_are_not_counted(self, test_session, candidates_prom

class TestPromotionReport:
def test_eligible_candidates(self, test_session, candidates_promoter):
test_session.add(Ethnicity(id=1, value="Prefer not to say"))
test_session.add(Ethnicity(id=4, value="Prefer not to say"))
test_session.commit()

candidates = [Candidate(ethnicity_id=1) for i in range(2)]
Expand Down Expand Up @@ -136,7 +136,7 @@ class TestDetailedPromotionReport:
# column headings: name, email, programme, offer, working pattern, belief, gender, sexuality, disability,
# caring, age range, ethnicity, profile url
{"Testy Candidate", "testcandidate@numberten.gov.uk", "FLS", "META", "24/7", "Don't forget to be awesome",
"Fork", "Pan", False, True, "Immortal", "Terran", "localhost:5000/candidates/candidate/2478"}
"Fork", "Pan", False, True, "Immortal", "Terran", "localhost:5000/candidates/candidate/1"}
),
(
False,
Expand Down

0 comments on commit a81b4c3

Please sign in to comment.