MediaProxyControllerTest: Fix tests
This commit is contained in:
parent
b9f135eaf3
commit
8c0b1fd1d9
|
@ -9,9 +9,17 @@ defmodule Pleroma.Web.MediaProxy.MediaProxyControllerTest do
|
||||||
import Mox
|
import Mox
|
||||||
|
|
||||||
alias Pleroma.ReverseProxy.ClientMock
|
alias Pleroma.ReverseProxy.ClientMock
|
||||||
|
alias Pleroma.UnstubbedConfigMock, as: ConfigMock
|
||||||
alias Pleroma.Web.MediaProxy
|
alias Pleroma.Web.MediaProxy
|
||||||
alias Plug.Conn
|
alias Plug.Conn
|
||||||
|
|
||||||
|
setup do
|
||||||
|
ConfigMock
|
||||||
|
|> stub_with(Pleroma.Test.StaticConfig)
|
||||||
|
|
||||||
|
:ok
|
||||||
|
end
|
||||||
|
|
||||||
describe "Media Proxy" do
|
describe "Media Proxy" do
|
||||||
setup do
|
setup do
|
||||||
clear_config([:media_proxy, :enabled], true)
|
clear_config([:media_proxy, :enabled], true)
|
||||||
|
|
Loading…
Reference in New Issue