This commit is contained in:
Lain Soykaf 2021-01-13 16:00:12 +01:00
parent 9106048c61
commit aff83eb7c1

View file

@ -1038,7 +1038,11 @@ test "rejects token exchange for user with confirmation_pending set to true" do
test "rejects token exchange for valid credentials belonging to an unapproved user" do
password = "testpassword"
user = insert(:user, password_hash: Pleroma.Password.hash_pwd_salt(password), approval_pending: true)
user =
insert(:user,
password_hash: Pleroma.Password.hash_pwd_salt(password),
approval_pending: true
)
refute Pleroma.User.account_status(user) == :active