mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-24 00:15:11 +01: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 New Issue
Block a user