logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 9da81f41c6e2084973095eefebbda3b1abde587c
parent c842e6267545dfa88cf97cef69337296c3cb77d5
Author: Ilja <ilja@ilja.space>
Date:   Fri, 17 Jun 2022 17:35:03 +0200

Fix warning during test user_test.exs

Fixed the warning
    [warning] Please change `clear_config([section], key: value)` to `clear_config([section, key], value)`

Diffstat:

Mtest/pleroma/user_test.exs7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/test/pleroma/user_test.exs b/test/pleroma/user_test.exs @@ -473,12 +473,7 @@ defmodule Pleroma.UserTest do reject_deletes: [] ) - setup do: - clear_config(:mrf, - policies: [ - Pleroma.Web.ActivityPub.MRF.SimplePolicy - ] - ) + setup do: clear_config([:mrf, :policies], [Pleroma.Web.ActivityPub.MRF.SimplePolicy]) test "it sends a welcome chat message when Simple policy applied to local instance" do clear_config([:mrf_simple, :media_nsfw], [{"localhost", ""}])