Fix pleroma.user rm mix task test

This is not the place to be validating deletes are federated
This commit is contained in:
Mark Felder 2021-02-23 11:05:41 -06:00
parent 0714f1c440
commit 90bf82cf45

View File

@ -95,17 +95,13 @@ defmodule Mix.Tasks.Pleroma.UserTest do
clear_config([:instance, :federating], true)
user = insert(:user)
with_mock Pleroma.Web.Federator,
publish: fn _ -> nil end do
Mix.Tasks.Pleroma.User.run(["rm", user.nickname])
ObanHelpers.perform_all()
assert [{:ok, job_result}] = ObanHelpers.perform_all()
assert_received {:mix_shell, :info, [message]}
assert message =~ " deleted"
assert %{is_active: false} = User.get_by_nickname(user.nickname)
assert called(Pleroma.Web.Federator.publish(:_))
end
end
test "a remote user's create activity is deleted when the object has been pruned" do