summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2023-12-11 10:01:55 +0400
committerLain Soykaf <lain@lain.com>2023-12-11 10:01:55 +0400
commit305c76470f62839ae791e6c012f0a0065c587f06 (patch)
tree4b8ebe3adf86fd0b900ec9c0179c86615bb99883
parent5530c7dca47d8a012dbd85e6db459e48d615f00c (diff)
downloadpleroma-305c76470f62839ae791e6c012f0a0065c587f06.tar.gz
pleroma-305c76470f62839ae791e6c012f0a0065c587f06.zip
OpenGraphTest: Fix test
-rw-r--r--test/pleroma/web/metadata/providers/open_graph_test.exs10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/pleroma/web/metadata/providers/open_graph_test.exs b/test/pleroma/web/metadata/providers/open_graph_test.exs
index b7ce95f7d..6a0fc9b10 100644
--- a/test/pleroma/web/metadata/providers/open_graph_test.exs
+++ b/test/pleroma/web/metadata/providers/open_graph_test.exs
@@ -4,9 +4,19 @@
defmodule Pleroma.Web.Metadata.Providers.OpenGraphTest do
use Pleroma.DataCase
+ import Mox
import Pleroma.Factory
+
+ alias Pleroma.UnstubbedConfigMock, as: ConfigMock
alias Pleroma.Web.Metadata.Providers.OpenGraph
+ setup do
+ ConfigMock
+ |> stub_with(Pleroma.Test.StaticConfig)
+
+ :ok
+ end
+
setup do: clear_config([Pleroma.Web.Metadata, :unfurl_nsfw])
test "it renders all supported types of attachments and skips unknown types" do