MediaProxyControllerTest: Fix tests

This commit is contained in:
Lain Soykaf 2023-12-11 10:16:29 +04:00
parent b9f135eaf3
commit 8c0b1fd1d9
1 changed files with 8 additions and 0 deletions

View File

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