Skip to content

Commit

Permalink
Fix brittle test for committee history
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeaufort committed Jun 12, 2018
1 parent 9ee427d commit 384ed83
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/test_committees.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,12 +360,11 @@ def test_election_full(self):
api.url_for(
CommitteeHistoryView,
candidate_id=self.candidate.candidate_id,
cycle=2012,
election_full='true'
)
)
assert len(results) == 2
assert results[0]['cycle'] == 2010
assert results[0]['committee_id'] == self.committees[0].committee_id
assert results[1]['cycle'] == 2012
assert results[1]['committee_id'] == self.committees[1].committee_id
# Default sort for /committee/[ID]/history is cycle desc
assert results[0]['cycle'] == 2012
assert results[0]['committee_id'] == self.committees[1].committee_id
assert results[1]['cycle'] == 2010
assert results[1]['committee_id'] == self.committees[0].committee_id

0 comments on commit 384ed83

Please sign in to comment.