-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test case in CandidateTotalAggregateView #5099
Add test case in CandidateTotalAggregateView #5099
Conversation
ff77ab4
to
153c7e9
Compare
@fec-jli, pytest passed for me. I'm having some issues accessing the data. A few small items that might be helpful, but are not really about the test.
The test looks great and the updates to the names look good. I'm so impressed with your hard work and skill. |
@cnlucas Thank you for your review and comments.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @fec-jli, will create the ticket for the election_full.
webservices/args.py
Outdated
@@ -1017,14 +1017,16 @@ def make_seek_args(field=fields.Int, description=None): | |||
candidate_total_aggregate = { | |||
'election_year': fields.List(fields.Int, description=docs.RECORD_CYCLE), | |||
'office': fields.Str(validate=validate.OneOf(['', 'H', 'S', 'P']), description=docs.OFFICE), | |||
'party': fields.Str(validate=validate.OneOf(['DEM', 'REP', 'Other']), description=docs.PARTY), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the party filter be removed since the logic is not in resource yet?
Add endpoint description Change function add_column() to add_columns() Change endpoint name to /candidates/totals/aggregates/ Add filter by district update docs
9798eff
to
3345212
Compare
Codecov Report
@@ Coverage Diff @@
## develop #5099 +/- ##
===========================================
+ Coverage 85.17% 85.75% +0.57%
===========================================
Files 81 81
Lines 7719 7713 -6
===========================================
+ Hits 6575 6614 +39
+ Misses 1144 1099 -45
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this endpoint!
Summary (required)
After create new endpoint: /
candidates/totals/aggregates/
, we need add test cases.Required reviewers
1 developer
Impacted areas of the application
endpoint: /
candidates/totals/aggregates/
Completion criteria
/candidates/totals/aggregate/
to/candidates/totals/aggregates/
How to test
pytest
candidates/totals/aggregates/
by passing each aggregate_by parameter.