projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfix: muted/blocked user notification streaming
[akkoma]
/
test
/
web
/
web_finger
/
web_finger_controller_test.exs
diff --git
a/test/web/web_finger/web_finger_controller_test.exs
b/test/web/web_finger/web_finger_controller_test.exs
index 3bc878532f0367f41b610d4a7375620f2c7ed615..a14ed3126d43395e298b95df87125ef79574e333 100644
(file)
--- a/
test/web/web_finger/web_finger_controller_test.exs
+++ b/
test/web/web_finger/web_finger_controller_test.exs
@@
-1,15
+1,21
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Web.WebFinger.WebFingerControllerTest do
use Pleroma.Web.ConnCase
defmodule Pleroma.Web.WebFinger.WebFingerControllerTest do
use Pleroma.Web.ConnCase
- alias Pleroma.User
- alias Pleroma.Web.WebFinger.WebFingerController
-
import Pleroma.Factory
import Pleroma.Factory
- import ExUnit.CaptureLog
import Tesla.Mock
setup do
mock(fn env -> apply(HttpRequestMock, :request, [env]) end)
import Tesla.Mock
setup do
mock(fn env -> apply(HttpRequestMock, :request, [env]) end)
+
+ config_path = [:instance, :federating]
+ initial_setting = Pleroma.Config.get(config_path)
+
+ Pleroma.Config.put(config_path, true)
+ on_exit(fn -> Pleroma.Config.put(config_path, initial_setting) end)
:ok
end
:ok
end