summaryrefslogtreecommitdiff
path: root/test/web/ostatus/incoming_documents/delete_handling_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-02-01 10:21:17 +0100
committerlain <lain@soykaf.club>2019-02-01 10:21:17 +0100
commit01d483f9c76456ed03010f5a0f5e08e118db27a8 (patch)
treef3d0ca4e15c951d38e44e85befd366f1a8eca0f9 /test/web/ostatus/incoming_documents/delete_handling_test.exs
parentb19b4f85376f6bad33bb37b1624f45dbd502bfda (diff)
parentb3b0855456a92351667a50c8ea77f328bded76ca (diff)
downloadpleroma-01d483f9c76456ed03010f5a0f5e08e118db27a8.tar.gz
pleroma-01d483f9c76456ed03010f5a0f5e08e118db27a8.zip
Merge remote-tracking branch 'origin/develop' into fix-rich-media-toggle
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)