all tests passed
[akkoma] / test / web / activity_pub / activity_pub_controller_test.exs
index 1c24b348c5f83beb23418318a109c9a7b2459862..41475911038fb06dbe02cea6bae34f603fdccbff 100644 (file)
@@ -4,7 +4,10 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do
   alias Pleroma.Web.ActivityPub.{UserView, ObjectView}
   alias Pleroma.{Repo, User}
   alias Pleroma.Activity
-
+  setup_all do
+    Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end)
+    :ok
+  end
   describe "/relay" do
     test "with the relay active, it returns the relay user", %{conn: conn} do
       res =