Commit 5be25b3e authored by lain's avatar lain
Browse files

Merge branch '1152-deletion' into 'develop'

User deletion issue exploration

See merge request !2879
parents a94210c7 05ff666f
Pipeline #29716 failed with stages
in 17 minutes and 39 seconds
......@@ -158,6 +158,8 @@ test "single user", %{admin: admin, conn: conn} do
user = insert(:user)
clear_config([:instance, :federating], true)
refute user.deactivated
with_mock Pleroma.Web.Federator,
publish: fn _ -> nil end do
conn =
......@@ -176,6 +178,9 @@ test "single user", %{admin: admin, conn: conn} do
assert json_response(conn, 200) == [user.nickname]
user = Repo.get(User, user.id)
assert user.deactivated
assert called(Pleroma.Web.Federator.publish(:_))
end
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment