Allowed some auth tests to be run independently

This commit is contained in:
Claude Paroz 2014-02-23 20:04:58 +01:00
parent a8a5c31966
commit 27e9069710
1 changed files with 2 additions and 0 deletions

View File

@ -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