tests: twitter api: activity view test: enable tesla mock
authorWilliam Pitcock <nenolod@dereferenced.org>
Sun, 23 Dec 2018 13:55:08 +0000 (13:55 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sun, 23 Dec 2018 14:00:54 +0000 (14:00 +0000)
test/web/twitter_api/views/activity_view_test.exs

index 8aa9e3130dc4aaba2be6a972a6c6616442fa3bd6..09d7a18d44dc984fecccb65c11a76c11077e369f 100644 (file)
@@ -12,6 +12,13 @@ defmodule Pleroma.Web.TwitterAPI.ActivityViewTest do
   alias Pleroma.Web.ActivityPub.ActivityPub
 
   import Pleroma.Factory
+  import Tesla.Mock
+
+  setup do
+    mock(fn env -> apply(HttpRequestMock, :request, [env]) end)
+    :ok
+  end
+
   import Mock
 
   test "a create activity with a html status" do