logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 305c76470f62839ae791e6c012f0a0065c587f06
parent 5530c7dca47d8a012dbd85e6db459e48d615f00c
Author: Lain Soykaf <lain@lain.com>
Date:   Mon, 11 Dec 2023 10:01:55 +0400

OpenGraphTest: Fix test

Diffstat:

Mtest/pleroma/web/metadata/providers/open_graph_test.exs10++++++++++
1 file 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 @@ -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