summaryrefslogtreecommitdiff
path: root/tests/test_client/auth_backends.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_client/auth_backends.py')
-rw-r--r--tests/test_client/auth_backends.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_client/auth_backends.py b/tests/test_client/auth_backends.py
index 97a2763aaa..a20b0be4de 100644
--- a/tests/test_client/auth_backends.py
+++ b/tests/test_client/auth_backends.py
@@ -1,4 +1,4 @@
-from django.contrib.auth.backends import ModelBackend
+from django.contrib.auth.backends import BaseBackend, ModelBackend
class TestClientBackend(ModelBackend):
@@ -7,3 +7,9 @@ class TestClientBackend(ModelBackend):
class BackendWithoutGetUserMethod:
pass
+
+
+class PermissionOnlyBackend(BaseBackend):
+ """This class inherits from BaseBackend but does not implement get_user."""
+
+ pass