Merge develop to refactor/mix-tasks
[akkoma] / test / web / mastodon_api / mastodon_api_controller_test.exs
index 098acb59ffa9a65dd3e8a0636929671cffe9ad65..7cd98cde8fa40188ebe2b2f9aee364b682d7c997 100644 (file)
@@ -8,6 +8,12 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
 
   import Pleroma.Factory
   import ExUnit.CaptureLog
+  import Tesla.Mock
+
+  setup do
+    mock(fn env -> apply(HttpRequestMock, :request, [env]) end)
+    :ok
+  end
 
   test "the home timeline", %{conn: conn} do
     user = insert(:user)