diff options
author | Lain Soykaf <lain@lain.com> | 2023-12-11 10:01:55 +0400 |
---|---|---|
committer | Lain Soykaf <lain@lain.com> | 2023-12-11 10:01:55 +0400 |
commit | 305c76470f62839ae791e6c012f0a0065c587f06 (patch) | |
tree | 4b8ebe3adf86fd0b900ec9c0179c86615bb99883 | |
parent | 5530c7dca47d8a012dbd85e6db459e48d615f00c (diff) | |
download | pleroma-305c76470f62839ae791e6c012f0a0065c587f06.tar.gz pleroma-305c76470f62839ae791e6c012f0a0065c587f06.zip |
OpenGraphTest: Fix test
-rw-r--r-- | test/pleroma/web/metadata/providers/open_graph_test.exs | 10 |
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 |