Various testing fixes in relation to user deletion.

This commit is contained in:
lain 2020-05-03 13:01:19 +02:00
parent 6fb96f64c1
commit 6c337489f4
3 changed files with 3 additions and 3 deletions

View file

@ -68,7 +68,7 @@ test "it handles user deletions", %{delete_user: delete, user: user} do
{:ok, _delete, _} = SideEffects.handle(delete)
ObanHelpers.perform_all()
refute User.get_cached_by_ap_id(user.ap_id)
assert User.get_cached_by_ap_id(user.ap_id).deactivated
end
end

View file

@ -68,7 +68,7 @@ test "it works for incoming user deletes" do
{:ok, _} = Transmogrifier.handle_incoming(data)
ObanHelpers.perform_all()
refute User.get_cached_by_ap_id(ap_id)
assert User.get_cached_by_ap_id(ap_id).deactivated
end
test "it fails for incoming user deletes with spoofed origin" do

View file

@ -156,7 +156,7 @@ test "single user", %{admin: admin, conn: conn} do
ObanHelpers.perform_all()
refute User.get_by_nickname(user.nickname)
assert User.get_by_nickname(user.nickname).deactivated
log_entry = Repo.one(ModerationLog)