mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Moved non-documented auth test models to the new test location.
This commit is contained in:
@@ -6,14 +6,14 @@ from django.contrib.auth import BACKEND_SESSION_KEY, authenticate, get_user
|
||||
from django.contrib.auth.backends import ModelBackend
|
||||
from django.contrib.auth.hashers import MD5PasswordHasher
|
||||
from django.contrib.auth.models import AnonymousUser, Group, Permission, User
|
||||
from django.contrib.auth.tests.custom_user import (
|
||||
CustomPermissionsUser, CustomUser, ExtensionUser,
|
||||
)
|
||||
from django.contrib.auth.tests.custom_user import CustomUser, ExtensionUser
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.core.exceptions import ImproperlyConfigured, PermissionDenied
|
||||
from django.http import HttpRequest
|
||||
from django.test import TestCase, modify_settings, override_settings
|
||||
|
||||
from .models import CustomPermissionsUser
|
||||
|
||||
|
||||
class CountingMD5PasswordHasher(MD5PasswordHasher):
|
||||
"""Hasher that counts how many times it computes a hash."""
|
||||
|
||||
Reference in New Issue
Block a user