Skip to content

Finish elections endpoint test coverage

Allan Shortlidge requested to merge finish-elections-test-coverage into dev

@DSASanFrancisco/portal-members

Adds more test coverage for /vote, /vote/paper, and /election/count, bringing test coverage of elections.py to 94%. Fixed a bug in submit_vote() exposed by the tests and removed redundant error handling (calling request.args['key'] automatically generates a 400 response when 'key' is not present).

Fixes #50

Edited by Allan Shortlidge

Merge request reports