diff options
author | Lain Soykaf <lain@lain.com> | 2023-06-11 21:26:32 +0400 |
---|---|---|
committer | Lain Soykaf <lain@lain.com> | 2023-06-11 21:26:32 +0400 |
commit | 2359fa9da9fab71d603694a061ddb7bf4c26c327 (patch) | |
tree | 69bbdfa2ccd99951ba34591fd2ab027d92ab4ff8 | |
parent | 8c6deb60027d4c06c55840123a974ebaca1339f7 (diff) |
ConnCase, DataCase: stub the configuration mockexplicitly-allow-unsafe
-rw-r--r-- | test/support/conn_case.ex | 1 | ||||
-rw-r--r-- | test/support/data_case.ex | 1 |
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 |