Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMwashuma committed Aug 26, 2020
1 parent ed5249d commit 6b79642
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def test_centers_list_redirect_for_regions_under_investigation(self):
self.assertEquals(response.status_code, 302)
self.assertIn(f'/data/center-list/{tally_id}/{region_id}/',
response['location'])
self.assertEquals(request.session, {'station_ids': [tally_id]})
self.assertEquals(request.session, {'station_ids': [self.station.pk]})

def test_centers_list_redirect_regions_exclude_after_investigation(self):
"""
Expand Down Expand Up @@ -483,7 +483,7 @@ def test_centers_list_redirect_regions_exclude_after_investigation(self):
self.assertEquals(response.status_code, 302)
self.assertIn(f'/data/center-list/{tally_id}/{region_id}/',
response['location'])
self.assertEquals(request.session, {'station_ids': [tally_id]})
self.assertEquals(request.session, {'station_ids': [self.station.pk]})

def test_candidates_list_redirect_regions_votes_summary_report(self):
"""
Expand Down Expand Up @@ -818,4 +818,4 @@ def test_sub_constituency_turn_out_and_votes_summary_reports(self):
'Sub Constituency votes per candidate')
self.assertContains(
response,
'Sub Constituency candidates list by ballot order')
'Sub Constituency candidates list by ballot order')

0 comments on commit 6b79642

Please sign in to comment.