From 27e906971067707a5fd9f910fd33bf0884103b87 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sun, 23 Feb 2014 20:04:58 +0100 Subject: [PATCH] Allowed some auth tests to be run independently --- django/contrib/auth/tests/test_views.py | 2 ++ 1 file changed, 2 insertions(+) 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