summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-02-23 20:04:58 +0100
committerClaude Paroz <claude@2xlibre.net>2014-02-23 20:05:45 +0100
commit27e906971067707a5fd9f910fd33bf0884103b87 (patch)
tree706cf5b99961710f3a2e235b3d0f78e6c1297937
parenta8a5c31966ff157b8d720fb0c8fd2df0191e2e61 (diff)
Allowed some auth tests to be run independently
-rw-r--r--django/contrib/auth/tests/test_views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/contrib/auth/tests/test_views.py b/django/contrib/auth/tests/test_views.py
index 605ed4462e..c9df787c06 100644
--- a/django/contrib/auth/tests/test_views.py
+++ b/django/contrib/auth/tests/test_views.py
@@ -24,6 +24,8 @@ from django.contrib.sessions.middleware import SessionMiddleware
from django.contrib.auth import SESSION_KEY, REDIRECT_FIELD_NAME
from django.contrib.auth.forms import (AuthenticationForm, PasswordChangeForm,
SetPasswordForm)
+# Needed so model is installed when tests are run independently:
+from django.contrib.auth.tests.custom_user import CustomUser # NOQA
from django.contrib.auth.tests.utils import skipIfCustomUser
from django.contrib.auth.views import login as login_view