Fix warning during test user_test.exs

Fixed the warning
    [warning] Please change `clear_config([section], key: value)` to `clear_config([section, key], value)`
This commit is contained in:
Ilja 2022-06-17 17:35:03 +02:00
parent c842e62675
commit 9da81f41c6

View file

@ -473,12 +473,7 @@ test "it sends a welcome chat message if it is set" 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", ""}])