From 1d1a2bee39b8504a11a94758966d90994b5dffb0 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Sat, 13 Jun 2020 19:48:27 +0200 Subject: [PATCH] Test doc --- authens/tests/test_backend.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/authens/tests/test_backend.py b/authens/tests/test_backend.py index 486db62..f543b69 100644 --- a/authens/tests/test_backend.py +++ b/authens/tests/test_backend.py @@ -115,7 +115,8 @@ class TestCASBackend(TestCase): class TestOldCASBackend(TestCase): def test_simple_auth(self): user = UserModel.objects.create_user(username="johndoe31", password="password") - wrong_user = UserModel.objects.create_user("johndoe", "password") + # Decoy user that may be authenticated by mistake + UserModel.objects.create_user(username="johndoe", password="password") OldCASAccount.objects.create(user=user, cas_login="johndoe", entrance_year=2019) auth_user = authenticate(