summaryrefslogtreecommitdiff
path: root/test/web/ostatus/incoming_documents/delete_handling_test.exs
diff options
context:
space:
mode:
authorhref <href+git-pleroma@random.sh>2019-02-01 09:14:35 +0000
committerhref <href+git-pleroma@random.sh>2019-02-01 09:14:35 +0000
commitb3b0855456a92351667a50c8ea77f328bded76ca (patch)
tree329d20c3eb8279caf01e0fb1ffbb0d08ae406f87 /test/web/ostatus/incoming_documents/delete_handling_test.exs
parent0340fcaecadae858b9c8fe39cc18bc25aef3e495 (diff)
parent92753b0cd9cfcdc5edb64a5e55ad27f73079f9e0 (diff)
downloadpleroma-b3b0855456a92351667a50c8ea77f328bded76ca.tar.gz
pleroma-b3b0855456a92351667a50c8ea77f328bded76ca.zip
Merge branch '534_federation_targets_reachability' into 'develop'
[#534] Unreachable federation targets retirement Closes #534 See merge request pleroma/pleroma!703
Diffstat (limited to 'test/web/ostatus/incoming_documents/delete_handling_test.exs')
-rw-r--r--test/web/ostatus/incoming_documents/delete_handling_test.exs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/web/ostatus/incoming_documents/delete_handling_test.exs b/test/web/ostatus/incoming_documents/delete_handling_test.exs
index c8fbff6cc..d97cd79f4 100644
--- a/test/web/ostatus/incoming_documents/delete_handling_test.exs
+++ b/test/web/ostatus/incoming_documents/delete_handling_test.exs
@@ -2,9 +2,16 @@ defmodule Pleroma.Web.OStatus.DeleteHandlingTest do
use Pleroma.DataCase
import Pleroma.Factory
+ import Tesla.Mock
+
alias Pleroma.{Repo, Activity, Object}
alias Pleroma.Web.OStatus
+ setup do
+ mock(fn env -> apply(HttpRequestMock, :request, [env]) end)
+ :ok
+ end
+
describe "deletions" do
test "it removes the mentioned activity" do
note = insert(:note_activity)