ConnCase, DataCase: stub the configuration mock

This commit is contained in:
Lain Soykaf 2023-06-11 21:26:32 +04:00
parent 8c6deb6002
commit 2359fa9da9
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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