mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Removed obsolete supports_* auth backend attributes in tests
This commit is contained in:
parent
f5a33e4840
commit
8dc3ba5ceb
@ -456,9 +456,6 @@ class PermissionDeniedBackend(object):
|
|||||||
"""
|
"""
|
||||||
Always raises PermissionDenied in `authenticate`, `has_perm` and `has_module_perms`.
|
Always raises PermissionDenied in `authenticate`, `has_perm` and `has_module_perms`.
|
||||||
"""
|
"""
|
||||||
supports_object_permissions = True
|
|
||||||
supports_anonymous_user = True
|
|
||||||
supports_inactive_user = True
|
|
||||||
|
|
||||||
def authenticate(self, username=None, password=None):
|
def authenticate(self, username=None, password=None):
|
||||||
raise PermissionDenied
|
raise PermissionDenied
|
||||||
@ -560,9 +557,6 @@ class TypeErrorBackend(object):
|
|||||||
"""
|
"""
|
||||||
Always raises TypeError.
|
Always raises TypeError.
|
||||||
"""
|
"""
|
||||||
supports_object_permissions = True
|
|
||||||
supports_anonymous_user = True
|
|
||||||
supports_inactive_user = True
|
|
||||||
|
|
||||||
def authenticate(self, username=None, password=None):
|
def authenticate(self, username=None, password=None):
|
||||||
raise TypeError
|
raise TypeError
|
||||||
|
Loading…
x
Reference in New Issue
Block a user