X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Fnotification_test.exs;h=1c60f6866a1296537e2c7d816bbe328155611082;hb=509c81e4b10bd8ba6d3a93889cd6fbbbfbcbab21;hp=56a5818103ecf7a0ecc615f1e95d9db50f580386;hpb=764a50f8a671cca69ca1f616754660506f8c18d8;p=akkoma diff --git a/test/notification_test.exs b/test/notification_test.exs index 56a581810..1c60f6866 100644 --- a/test/notification_test.exs +++ b/test/notification_test.exs @@ -649,6 +649,13 @@ defmodule Pleroma.NotificationTest do "object" => remote_user.ap_id } + remote_user_url = remote_user.ap_id + + Tesla.Mock.mock(fn + %{method: :get, url: ^remote_user_url} -> + %Tesla.Env{status: 404, body: ""} + end) + {:ok, _delete_activity} = Transmogrifier.handle_incoming(delete_user_message) ObanHelpers.perform_all()