diff options
author | lain <lain@soykaf.club> | 2021-01-27 11:33:27 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2021-01-27 11:33:27 +0000 |
commit | 7f0787163999fc0ac0c6fcfd0c13f80c5a55266d (patch) | |
tree | 849a79b9cea9d11402081a94f26f1f631bc87bc1 /test/pleroma/web/node_info_test.exs | |
parent | d7af0294e6a3a690524e0a08a35c9c6dafbb9f79 (diff) | |
parent | e854c35e652ce51821116cc7032099cd5534f7a6 (diff) | |
download | pleroma-7f0787163999fc0ac0c6fcfd0c13f80c5a55266d.tar.gz pleroma-7f0787163999fc0ac0c6fcfd0c13f80c5a55266d.zip |
Merge branch 'chore/tests-use-clear_config' into 'develop'
Convert tests to all use clear_config instead of Pleroma.Config.put
See merge request pleroma/pleroma!3282
Diffstat (limited to 'test/pleroma/web/node_info_test.exs')
-rw-r--r-- | test/pleroma/web/node_info_test.exs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/pleroma/web/node_info_test.exs b/test/pleroma/web/node_info_test.exs index 888b62791..ee6fdaae8 100644 --- a/test/pleroma/web/node_info_test.exs +++ b/test/pleroma/web/node_info_test.exs @@ -7,8 +7,6 @@ defmodule Pleroma.Web.NodeInfoTest do import Pleroma.Factory - alias Pleroma.Config - setup do: clear_config([:mrf_simple]) setup do: clear_config(:instance) @@ -93,7 +91,7 @@ defmodule Pleroma.Web.NodeInfoTest do assert "safe_dm_mentions" in response["metadata"]["features"] - Config.put([:instance, :safe_dm_mentions], false) + clear_config([:instance, :safe_dm_mentions], false) response = conn @@ -107,7 +105,7 @@ defmodule Pleroma.Web.NodeInfoTest do setup do: clear_config([:instance, :federating]) test "it shows if federation is enabled/disabled", %{conn: conn} do - Config.put([:instance, :federating], true) + clear_config([:instance, :federating], true) response = conn @@ -116,7 +114,7 @@ defmodule Pleroma.Web.NodeInfoTest do assert response["metadata"]["federation"]["enabled"] == true - Config.put([:instance, :federating], false) + clear_config([:instance, :federating], false) response = conn |