Test User with confirmation_pending: true, approval_pending: true

This commit is contained in:
Alex Gleason 2020-07-14 18:46:57 -05:00
parent 20d24741af
commit fab44f6970
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

View File

@ -1390,7 +1390,10 @@ defmodule Pleroma.UserTest do
end
test "returns :approval_pending for unapproved user" do
user = insert(:user, local: true, confirmation_pending: false, approval_pending: true)
user = insert(:user, local: true, approval_pending: true)
assert User.account_status(user) == :approval_pending
user = insert(:user, local: true, confirmation_pending: true, approval_pending: true)
assert User.account_status(user) == :approval_pending
end
end