diff --git a/test/support/conn_case.ex b/test/support/conn_case.ex index f010fec33..904f3b1d6 100644 --- a/test/support/conn_case.ex +++ b/test/support/conn_case.ex @@ -119,6 +119,7 @@ defmodule Pleroma.Web.ConnCase do DataCase.stub_pipeline() Mox.verify_on_exit!() + Mox.stub_with(Pleroma.ConfigGettingMock, Pleroma.Config) {:ok, conn: Phoenix.ConnTest.build_conn()} end diff --git a/test/support/data_case.ex b/test/support/data_case.ex index 3c9cab061..a12e40669 100644 --- a/test/support/data_case.ex +++ b/test/support/data_case.ex @@ -115,6 +115,7 @@ defmodule Pleroma.DataCase do Mox.stub_with(Pleroma.Web.ActivityPub.ActivityPubMock, Pleroma.Web.ActivityPub.ActivityPub) Mox.stub_with(Pleroma.Web.FederatorMock, Pleroma.Web.Federator) Mox.stub_with(Pleroma.ConfigMock, Pleroma.Config) + Mox.stub_with(Pleroma.ConfigGettingMock, Pleroma.Config) end def ensure_local_uploader(context) do