mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-09 08:45:26 +00:00
OpenGraphTest: Fix test
This commit is contained in:
parent
5530c7dca4
commit
305c76470f
1 changed files with 10 additions and 0 deletions
|
@ -4,9 +4,19 @@
|
||||||
|
|
||||||
defmodule Pleroma.Web.Metadata.Providers.OpenGraphTest do
|
defmodule Pleroma.Web.Metadata.Providers.OpenGraphTest do
|
||||||
use Pleroma.DataCase
|
use Pleroma.DataCase
|
||||||
|
import Mox
|
||||||
import Pleroma.Factory
|
import Pleroma.Factory
|
||||||
|
|
||||||
|
alias Pleroma.UnstubbedConfigMock, as: ConfigMock
|
||||||
alias Pleroma.Web.Metadata.Providers.OpenGraph
|
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])
|
setup do: clear_config([Pleroma.Web.Metadata, :unfurl_nsfw])
|
||||||
|
|
||||||
test "it renders all supported types of attachments and skips unknown types" do
|
test "it renders all supported types of attachments and skips unknown types" do
|
||||||
|
|
Loading…
Reference in a new issue