InstanceView: Use attribute for pleroma_configuration filter in test

This commit is contained in:
Phantasm 2026-06-27 22:44:59 +02:00
commit ef321846d4
No known key found for this signature in database
GPG key ID: 2669E588BCC634C8

View file

@ -36,6 +36,8 @@ defmodule Pleroma.Web.MastodonAPI.InstanceViewTest do
{:timelines_access, [:live_feeds, :hashtag_feeds, :trending_link_feeds]} {:timelines_access, [:live_feeds, :hashtag_feeds, :trending_link_feeds]}
] ]
@pleroma_configuration_filter [{:metadata, [:features, :federation]}]
@pleroma_configuration2_filter [ @pleroma_configuration2_filter [
{:metadata, {:metadata,
[ [
@ -294,7 +296,7 @@ defmodule Pleroma.Web.MastodonAPI.InstanceViewTest do
defp check_pleroma_configuration(info) do defp check_pleroma_configuration(info) do
configuration = configuration =
info[:pleroma] info[:pleroma]
|> filter_render([{:metadata, [:features, :federation]}], :discriminative, %{}) |> filter_render(@pleroma_configuration_filter, :discriminative, %{})
expected = %{ expected = %{
metadata: %{ metadata: %{