core: fix test user not having password set properly
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
6703c0a5d1
commit
9c9c00755a
|
@ -33,6 +33,7 @@ def create_test_admin_user(name: Optional[str] = None, set_password=False) -> Us
|
||||||
)
|
)
|
||||||
if set_password:
|
if set_password:
|
||||||
user.set_password(uid)
|
user.set_password(uid)
|
||||||
|
user.save()
|
||||||
group.users.add(user)
|
group.users.add(user)
|
||||||
return user
|
return user
|
||||||
|
|
||||||
|
|
Reference in a new issue