-
Notifications
You must be signed in to change notification settings - Fork 260
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
#Issue1133 : Expand PasswordResetSerializer
for backend
#1151
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for activist-org canceled.
|
Thank you for the pull request! ❤️The activist team will do our best to address your contribution as soon as we can. If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the |
Maintainer ChecklistThe following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :)
|
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.
First PR Commit Check
- The commit messages for the remote branch of a new contributor should be checked to make sure their email is set up correctly so that they receive credit for their contribution
- The contributor's name and icon in remote commits should be the same as what appears in the PR
- If there's a mismatch, the contributor needs to make sure that the email they use for GitHub matches what they have for
git config user.email
in their local activist repo (can be set withgit config --global user.email "GITHUB_EMAIL"
)
Thanks for the PR, @narmadha-raghu! We'll try to get to this in the coming days :) CC @to-sta for oversight here. The method resources that I provided was this blog post, which may also then be used in other Serializers so we're consistent. |
Hi @andrewtavis, I also have another question—would it be a good idea to split the tests within For example, we could structure them under a
This would make the implementation clearer and more maintainable. Let me know your thoughts! 🚀 |
That sounds amazing to me, @narmadha-raghu! Feel free to send along this refactor and then we'll get to the review :) |
Thanks for the great initiative! 😊 |
Contributor checklist
PFA
Description
This pull request improves test coverage in
backend/authentication/serializers.py
, specifically addressing the missing lines 111-114 in thePasswordResetSerializer
. I have added test cases to ensure these lines are covered.Changes :
PasswordResetSerializer
to achieve full coverage.Testing :
I followed this resource, as suggested by @andrewtavis, to refine the test implementation for DRF serializers.