summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_views.py
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2016-02-04 11:47:51 -0500
committerSimon Charette <charette.s@gmail.com>2016-02-04 12:30:34 -0500
commit6eb3ce11e4d6be237ad2e4895d8ae0b7bc1803dc (patch)
tree0b14e1f387c7009cb89fcf905722805bc43392f2 /tests/auth_tests/test_views.py
parent19318507d92d35f5f5cee6bfb7c379efa309c4f8 (diff)
Fixed #26089 -- Removed custom user test models from public API.
Thanks to Tim Graham for the review.
Diffstat (limited to 'tests/auth_tests/test_views.py')
-rw-r--r--tests/auth_tests/test_views.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py
index 76a1abf6ed..336e9a1482 100644
--- a/tests/auth_tests/test_views.py
+++ b/tests/auth_tests/test_views.py
@@ -15,7 +15,6 @@ from django.contrib.auth.forms import (
AuthenticationForm, PasswordChangeForm, SetPasswordForm,
)
from django.contrib.auth.models import User
-from django.contrib.auth.tests.custom_user import CustomUser
from django.contrib.auth.views import login as login_view, redirect_to_login
from django.contrib.sessions.middleware import SessionMiddleware
from django.contrib.sites.requests import RequestSite
@@ -31,7 +30,7 @@ from django.utils.http import urlquote
from django.utils.six.moves.urllib.parse import ParseResult, urlparse
from django.utils.translation import LANGUAGE_SESSION_KEY
-from .models import UUIDUser
+from .models import CustomUser, UUIDUser
from .settings import AUTH_TEMPLATES
@@ -367,7 +366,7 @@ class PasswordResetTest(AuthViewsTestCase):
self.assertContains(response, "Hello, .")
-@override_settings(AUTH_USER_MODEL='auth.CustomUser')
+@override_settings(AUTH_USER_MODEL='auth_tests.CustomUser')
class CustomUserPasswordResetTest(AuthViewsTestCase):
user_email = 'staffmember@example.com'