-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* send email on commit * adopt test class to on_commit, see: https://stackoverflow.com/q/42585224/ * missing setting fix
- Loading branch information
Showing
4 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
from django.core import mail | ||
from django.core import management | ||
from django.core.exceptions import ImproperlyConfigured | ||
from django.test import TestCase | ||
from django.test import TransactionTestCase | ||
from django.test import override_settings | ||
from django.utils import six | ||
from django.utils.timezone import now as datetime_now | ||
|
@@ -27,7 +27,7 @@ | |
REGISTRATION_DEFAULT_FROM_EMAIL='[email protected]', | ||
REGISTRATION_EMAIL_HTML=True, | ||
DEFAULT_FROM_EMAIL='[email protected]') | ||
class RegistrationModelTests(TestCase): | ||
class RegistrationModelTests(TransactionTestCase): | ||
""" | ||
Test the model and manager used in the default backend. | ||
|
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 |
---|---|---|
|
@@ -60,3 +60,5 @@ | |
('admin1', '[email protected]'), | ||
('admin2', '[email protected]'), | ||
) | ||
|
||
ACCOUNT_ACTIVATION_DAYS = 7 |