-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
23 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -227,7 +227,7 @@ def test_record_drink_usernames(self): | |
self.assertEqual(data.meta.result, 'ok') | ||
|
||
@override_settings(EMAIL_BACKEND='django.core.mail.backends.locmem.EmailBackend') | ||
@override_settings(EMAIL_FROM_ADDRESS='test-from@example') | ||
@override_settings(DEFAULT_FROM_EMAIL='test-from@example') | ||
def test_registration(self): | ||
response, data = self.post( | ||
'new-user/', data={'username': 'newuser', 'email': '[email protected]'}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ def setUp(self): | |
self.user.save() | ||
|
||
@override_settings(EMAIL_BACKEND='django.core.mail.backends.locmem.EmailBackend') | ||
@override_settings(EMAIL_FROM_ADDRESS='test-from@example') | ||
@override_settings(DEFAULT_FROM_EMAIL='test-from@example') | ||
def test_notifications(self): | ||
response = self.client.get('/accounts/password/reset/') | ||
self.assertContains(response, "Reset Password", status_code=200) | ||
|
@@ -52,6 +52,7 @@ def test_notifications(self): | |
|
||
msg = mail.outbox[0] | ||
|
||
self.assertEqual('Password reset on My Kegbot', msg.subject) | ||
# TODO(mikey): Customize subject with `kbsite.title` | ||
self.assertEqual('Password reset', msg.subject) | ||
self.assertEqual(['[email protected]'], msg.to) | ||
self.assertEqual('test-from@example', msg.from_email) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% load i18n %}{% autoescape off %} | ||
{% blocktrans %}Password reset{% endblocktrans %} | ||
{% endautoescape %} |