projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'upstream/develop' into restrict-domain
[akkoma]
/
test
/
plugs
/
remote_ip_test.exs
diff --git
a/test/plugs/remote_ip_test.exs
b/test/plugs/remote_ip_test.exs
index d120c588b5c5adc87fe96a8011d4251b04a3b9b6..752ab32e7b6bd32ca1fd7c0e49e167ed3a9a75e2 100644
(file)
--- a/
test/plugs/remote_ip_test.exs
+++ b/
test/plugs/remote_ip_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
19
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Plugs.RemoteIpTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Plugs.RemoteIpTest do
@@
-8,6
+8,9
@@
defmodule Pleroma.Plugs.RemoteIpTest do
alias Pleroma.Plugs.RemoteIp
alias Pleroma.Plugs.RemoteIp
+ import Pleroma.Tests.Helpers, only: [clear_config: 1, clear_config: 2]
+ setup do: clear_config(RemoteIp)
+
test "disabled" do
Pleroma.Config.put(RemoteIp, enabled: false)
test "disabled" do
Pleroma.Config.put(RemoteIp, enabled: false)