Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Imported custom user classes in tests depending on it

Without those imports, affected test files cannot be run
independently. Refs #21164.
  • Loading branch information...
commit ef22d512b54cbf0b5f76151bc760391d839fbf72 1 parent d9b6fb8
Claude Paroz authored October 14, 2013
2  django/contrib/auth/tests/test_decorators.py
... ...
@@ -1,6 +1,8 @@
1 1
 from django.conf import settings
2 2
 from django.contrib.auth import models
3 3
 from django.contrib.auth.decorators import login_required, permission_required
  4
+# Trigger CustomUser perm creation:
  5
+from django.contrib.auth.tests.custom_user import CustomUser
4 6
 from django.contrib.auth.tests.test_views import AuthViewsTestCase
5 7
 from django.contrib.auth.tests.utils import skipIfCustomUser
6 8
 from django.core.exceptions import PermissionDenied
1  django/contrib/auth/tests/test_models.py
... ...
@@ -1,5 +1,6 @@
1 1
 from django.contrib.auth import get_user_model
2 2
 from django.contrib.auth.models import AbstractUser, Group, User, UserManager
  3
+from django.contrib.auth.tests.custom_user import IsActiveTestUser1
3 4
 from django.contrib.auth.tests.utils import skipIfCustomUser
4 5
 from django.core import mail
5 6
 from django.db.models.signals import post_save
1  django/contrib/auth/tests/test_views.py
@@ -21,6 +21,7 @@
21 21
 from django.contrib.auth import SESSION_KEY, REDIRECT_FIELD_NAME
22 22
 from django.contrib.auth.forms import (AuthenticationForm, PasswordChangeForm,
23 23
                 SetPasswordForm)
  24
+from django.contrib.auth.tests.custom_user import CustomUser
24 25
 from django.contrib.auth.tests.utils import skipIfCustomUser
25 26
 from django.contrib.auth.views import login as login_view
26 27
 

0 notes on commit ef22d51

Please sign in to comment.
Something went wrong with that request. Please try again.