mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-22 17:27:18 +00:00
Test User with confirmation_pending: true, approval_pending: true
This commit is contained in:
parent
20d24741af
commit
fab44f6970
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue