Name: openelections-data-wi
Owner: The OpenElections Project
Description: Pre-processed election results for Wisconsin elections
Created: 2015-11-12 15:15:30.0
Updated: 2017-03-28 22:36:53.0
Pushed: 2018-05-23 11:43:19.0
Homepage: null
Size: 119949
Language: Gherkin
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Pre-processed election results for Wisconsin elections
To re-parse data files:
on parser.py
To parse data files for specific elections, append one or more election ids:
on parser.py 426
A folder local_data_cache
keeps a local copy of input data files. To update it:
ocal_data_cache
on fetch.py wi
To fetch input files for specific elections, append one or more election ids:
on fetch.py wi 1577 404
There are two types of tests:
Tests to validate the CSV output using csv-test. To test:
install
_modules/csv-test/bin/csv-test tests/csv-test-config.yml '2014/*' tests/csv-test-validators.yml
Tests to validate a sampling of results. These use behave and follow the format:
ples: 20150929__wi__general_ward.csv
ndidate | office | ward | votes | total |
ndi Duchow | Assembly | Village of Hartland Wards 1-13 | 117 | 140 |
omas D. Hibbard (Write-In)| ASSEMBLY | Village of Wales Wards 1-4 | 10 | 106 |
To run those tests:
ests; behave