summaryrefslogtreecommitdiff
path: root/test/plugs/remote_ip_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-02-20 11:36:48 +0000
committerlain <lain@soykaf.club>2020-02-20 11:36:48 +0000
commitcf4ecffcea84d9b214f922a973d50c699317a202 (patch)
tree27eeb915193738f167db55119afb5a5ebafa9b6b /test/plugs/remote_ip_test.exs
parent3b78695c9828bc49a5c7706437af5f24fc4475de (diff)
parent226f4d5ef93805e2ff93f00d443238ab7afeb3e6 (diff)
downloadpleroma-cf4ecffcea84d9b214f922a973d50c699317a202.tar.gz
pleroma-cf4ecffcea84d9b214f922a973d50c699317a202.zip
Merge branch 'tests-clear-config-tweaks' into 'develop'
Tweaks to `clear_config` calls in tests See merge request pleroma/pleroma!2209
Diffstat (limited to 'test/plugs/remote_ip_test.exs')
-rw-r--r--test/plugs/remote_ip_test.exs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/plugs/remote_ip_test.exs b/test/plugs/remote_ip_test.exs
index d120c588b..93e276454 100644
--- a/test/plugs/remote_ip_test.exs
+++ b/test/plugs/remote_ip_test.exs
@@ -8,6 +8,10 @@ defmodule Pleroma.Plugs.RemoteIpTest do
alias Pleroma.Plugs.RemoteIp
+ import Pleroma.Tests.Helpers, only: [clear_config: 1, clear_config: 2]
+
+ clear_config(RemoteIp)
+
test "disabled" do
Pleroma.Config.put(RemoteIp, enabled: false)