summaryrefslogtreecommitdiff
path: root/test/notification_test.exs
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-02-11 10:12:57 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-02-18 08:19:01 +0300
commit514c899275a32e6ef63305f9424c50344d41b12e (patch)
treeac6be2ed464506378e1d8ccd20439677c89c9896 /test/notification_test.exs
parent962eb8d4ac1aafeed6e3ae9b17847b9afaec7712 (diff)
downloadpleroma-514c899275a32e6ef63305f9424c50344d41b12e.tar.gz
pleroma-514c899275a32e6ef63305f9424c50344d41b12e.zip
adding gun adapter
Diffstat (limited to 'test/notification_test.exs')
-rw-r--r--test/notification_test.exs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/notification_test.exs b/test/notification_test.exs
index 04bf5b41a..1de3c6e3b 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()