From 9c9c00755aa84e28ff0dc465d401f79cb65455cd Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 23 Nov 2021 22:30:05 +0100 Subject: [PATCH] core: fix test user not having password set properly Signed-off-by: Jens Langhammer --- authentik/core/tests/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/authentik/core/tests/utils.py b/authentik/core/tests/utils.py index 6539f7cae..6ccb02b24 100644 --- a/authentik/core/tests/utils.py +++ b/authentik/core/tests/utils.py @@ -33,6 +33,7 @@ def create_test_admin_user(name: Optional[str] = None, set_password=False) -> Us ) if set_password: user.set_password(uid) + user.save() group.users.add(user) return user