commit: 8c0b1fd1d9f4ddf4c23b598b911b2407de0458c7
parent b9f135eaf31d70e3e7efc0547475abc45e809021
Author: Lain Soykaf <lain@lain.com>
Date: Mon, 11 Dec 2023 10:16:29 +0400
MediaProxyControllerTest: Fix tests
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/test/pleroma/web/media_proxy/media_proxy_controller_test.exs b/test/pleroma/web/media_proxy/media_proxy_controller_test.exs
@@ -9,9 +9,17 @@ defmodule Pleroma.Web.MediaProxy.MediaProxyControllerTest do
import Mox
alias Pleroma.ReverseProxy.ClientMock
+ alias Pleroma.UnstubbedConfigMock, as: ConfigMock
alias Pleroma.Web.MediaProxy
alias Plug.Conn
+ setup do
+ ConfigMock
+ |> stub_with(Pleroma.Test.StaticConfig)
+
+ :ok
+ end
+
describe "Media Proxy" do
setup do
clear_config([:media_proxy, :enabled], true)