core: fix test user not having password set properly

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-11-23 22:30:05 +01:00
parent 6703c0a5d1
commit 9c9c00755a
1 changed files with 1 additions and 0 deletions

View File

@ -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