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 @@ defmodule Pleroma.Web.OAuth.OAuthControllerTest do
test "rejects token exchange for valid credentials belonging to an unapproved user" do test "rejects token exchange for valid credentials belonging to an unapproved user" do
password = "testpassword" 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 refute Pleroma.User.account_status(user) == :active