summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2023-06-11 21:26:32 +0400
committerLain Soykaf <lain@lain.com>2023-06-11 21:26:32 +0400
commit2359fa9da9fab71d603694a061ddb7bf4c26c327 (patch)
tree69bbdfa2ccd99951ba34591fd2ab027d92ab4ff8
parent8c6deb60027d4c06c55840123a974ebaca1339f7 (diff)
ConnCase, DataCase: stub the configuration mockexplicitly-allow-unsafe
-rw-r--r--test/support/conn_case.ex1
-rw-r--r--test/support/data_case.ex1
2 files changed, 2 insertions, 0 deletions
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