openelections / openelections-data-ca

Pre-processed election results for California elections
MIT License
13 stars 17 forks source link

Fix 2016 primary Yolo precinct unit test error #247

Closed carbonphyber closed 2 years ago

carbonphyber commented 2 years ago

2016 primary Yolo precinct: add State Assembly write-ins (Fixes Issue #82)

carbonphyber commented 2 years ago

Confirmed that this PR fixes this formerly broken test:

_ test_data[2016-0607-primary] [2016/counties/20160607__ca__primary__yolo__precinct.csv] _
tests/test_data.py:45: in test_data
    assert state_cmp.to_dict()['votes'] == county_data.to_dict()[
E   AssertionError: Yolo failed
E   assert {('Alan Spear...t'): 433, ...} == {('Alan Spear...t'): 433, ...}
E     Omitting 92 identical items, use -vv to show
E     Left contains 3 more items:
E     {('Janine Kloss', 'Yolo', 7.0, 'State Assembly'): 5,
E      ('Ralph Merletti', 'Yolo', 7.0, 'State Assembly'): 6,
E      ('Ryan K Brown', 'Yolo', 7.0, 'State Assembly'): 34}
E     Use -v to get the full diff