summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2023-12-11 10:07:39 +0400
committerLain Soykaf <lain@lain.com>2023-12-11 10:07:39 +0400
commitb9f135eaf31d70e3e7efc0547475abc45e809021 (patch)
tree58ec30c80dc8aab4cec660a561505acd83ff5e65
parent60800c0b2b2272db5a774522ca5ca7734e905565 (diff)
downloadpleroma-b9f135eaf31d70e3e7efc0547475abc45e809021.tar.gz
pleroma-b9f135eaf31d70e3e7efc0547475abc45e809021.zip
FrontendStaticPlugTest: Fix test
-rw-r--r--test/pleroma/web/plugs/frontend_static_plug_test.exs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/pleroma/web/plugs/frontend_static_plug_test.exs b/test/pleroma/web/plugs/frontend_static_plug_test.exs
index ab31c5f22..6d6ac0f8e 100644
--- a/test/pleroma/web/plugs/frontend_static_plug_test.exs
+++ b/test/pleroma/web/plugs/frontend_static_plug_test.exs
@@ -4,7 +4,11 @@
defmodule Pleroma.Web.Plugs.FrontendStaticPlugTest do
use Pleroma.Web.ConnCase
+
import Mock
+ import Mox
+
+ alias Pleroma.UnstubbedConfigMock, as: ConfigMock
@dir "test/tmp/instance_static"
@@ -66,6 +70,9 @@ defmodule Pleroma.Web.Plugs.FrontendStaticPlugTest do
File.mkdir_p!("#{path}/proxy/rr/ss")
File.write!("#{path}/proxy/rr/ss/Ek7w8WPVcAApOvN.jpg:large", "FB image")
+ ConfigMock
+ |> stub_with(Pleroma.Test.StaticConfig)
+
url =
Pleroma.Web.MediaProxy.encode_url("https://pbs.twimg.com/media/Ek7w8WPVcAApOvN.jpg:large")