-
Notifications
You must be signed in to change notification settings - Fork 76
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 period mismatch error handling to API #1026
Conversation
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.
Looks good :) a couple of suggestions.
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.
Now a proper review 😃
- Code looks good to me 🙌
- Would it be possible to add a test?
Normally, with all API endpoints, we should be able to test that they handle success/error properly —hence the bug here.
I think we're currently just testing for success, but not for error https://github.com/openfisca/openfisca-core/blob/master/tests/web_api/test_calculate.py#L287-L314
b1272fa
to
0bd0a94
Compare
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! Thanks for this contribution @HAEKADI 😃
Connected to #916
Bug fix: