InstanceView: Use attribute for pleroma_configuration filter in test
This commit is contained in:
parent
6c79cc792f
commit
ef321846d4
1 changed files with 3 additions and 1 deletions
|
|
@ -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: %{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue