-
Notifications
You must be signed in to change notification settings - Fork 448
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
change responses of resend_email and adding testcases #765
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #765 +/- ##
===========================================
+ Coverage 95.84% 96.31% +0.47%
===========================================
Files 95 97 +2
Lines 5200 5322 +122
===========================================
+ Hits 4984 5126 +142
+ Misses 216 196 -20
|
@isabelcosta please review my PR |
|
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.
I requested a very tiny change.
You did very good work with the new test suite! 👏 👏 @saikirankv
Thank you for your contribution!
app/api/resources/user.py
Outdated
@@ -320,7 +320,7 @@ def get(cls, token): | |||
|
|||
@users_ns.route("user/resend_email") | |||
@users_ns.response(HTTPStatus.OK, "%s" % messages.EMAIL_VERIFICATION_MESSAGE) | |||
@users_ns.response(HTTPStatus.BAD_REQUEST, "Invalid input.") | |||
@users_ns.response(HTTPStatus.BAD_REQUEST, "%s" % messages.EMAIL_INPUT_BY_USER_IS_INVALID) |
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.
@users_ns.response(HTTPStatus.BAD_REQUEST, "%s" % messages.EMAIL_INPUT_BY_USER_IS_INVALID) | |
@users_ns.response(HTTPStatus.BAD_REQUEST, f"{messages.EMAIL_INPUT_BY_USER_IS_INVALID}) |
I would suggest this, because in this project we are trying to be consistent with f-strings :)
@SanketDG can you review this PR? |
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.
LGTM!
@saikirankv please resolve the merge conflicts thanks |
@saikirankv closing due to inactivity |
Description
Fixes #720
Type of Change:
Code/Quality Assurance Only
How Has This Been Tested?
Checklist:
Code/Quality Assurance Only