mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-05-17 01:02:38 +00:00
ConnCase, DataCase: stub the configuration mock
This commit is contained in:
parent
8c6deb6002
commit
2359fa9da9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue