ASWWU-Web / python_server

The API server for ASWWU Web. This project uses the Tornado web framework to serve and manage data across all ASWWU sites.
https://aswwu.com/server
4 stars 10 forks source link

Feature/elections tests #163

Closed kadensu closed 4 years ago

kadensu commented 4 years ago
ermsdev commented 4 years ago

When you're ready merge develop into this, 114d879 and 7970b79 include database resetting.

codecov[bot] commented 4 years ago

Codecov Report

Merging #163 into develop will increase coverage by 8.99%. The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #163      +/-   ##
===========================================
+ Coverage    34.01%   43.00%   +8.99%     
===========================================
  Files           29       29              
  Lines         3034     3032       -2     
===========================================
+ Hits          1032     1304     +272     
+ Misses        2002     1728     -274     
Impacted Files Coverage Δ
src/aswwu/validators/elections.py 54.66% <ø> (+40.38%) :arrow_up:
src/aswwu/base_handlers.py 79.73% <0.00%> (+0.65%) :arrow_up:
src/aswwu/alchemy_new/mask.py 56.00% <0.00%> (+3.20%) :arrow_up:
src/aswwu/models/elections.py 92.68% <0.00%> (+14.63%) :arrow_up:
src/aswwu/permissions.py 48.48% <0.00%> (+21.21%) :arrow_up:
src/aswwu/route_handlers/elections.py 62.38% <0.00%> (+44.47%) :arrow_up:
src/aswwu/alchemy_new/elections.py 61.87% <0.00%> (+46.87%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b52ac2b...232d21f. Read the comment docs.

kadensu commented 4 years ago

This PR makes partial progress on #177. It adds very basic tests for most of the following endpoints: