-
Notifications
You must be signed in to change notification settings - Fork 293
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
added check for email provider check before sending reset password email #2544
added check for email provider check before sending reset password email #2544
Conversation
care/users/tests/test_auth.py
Outdated
|
||
@override_settings( | ||
IS_PRODUCTION=True, | ||
EMAIL_HOST="smtp.gmail.com", |
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.
use a dummy host not something that could actually work.
EMAIL_HOST_PASSWORD="your-app-password", | ||
) | ||
def test_forgot_password_with_email_configration(self): | ||
response = self.client.post( |
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.
We should mock the bits that actually send the email and confirm that the email has been sent.
@vigneshhari made the updates , Please take a look |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2544 +/- ##
========================================
Coverage 70.00% 70.00%
========================================
Files 198 198
Lines 11660 11662 +2
Branches 1604 1605 +1
========================================
+ Hits 8162 8164 +2
Misses 3107 3107
Partials 391 391 ☔ View full report in Codecov by Sentry. |
Tests that check if the email was sent were still not added. |
Proposed Changes
Associated Issue
Merge Checklist
Only PR's with test cases included and passing lint and test pipelines will be reviewed
@ohcnetwork/care-backend-maintainers @ohcnetwork/care-backend-admins