Finish elections endpoint test coverage
@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