projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'improving-test-coverage' into 'develop'
[akkoma]
/
test
/
web
/
node_info_test.exs
diff --git
a/test/web/node_info_test.exs
b/test/web/node_info_test.exs
index d1d7a3ce8af7e578b8b7f34e8a00c0f73680946f..43f32260616e9fcca5a481f765a3526e88369806 100644
(file)
--- a/
test/web/node_info_test.exs
+++ b/
test/web/node_info_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.Web.NodeInfoTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.NodeInfoTest do
@@
-7,8
+7,8
@@
defmodule Pleroma.Web.NodeInfoTest do
import Pleroma.Factory
import Pleroma.Factory
- clear_config([:mrf_simple])
- clear_config(:instance)
+
setup do:
clear_config([:mrf_simple])
+
setup do:
clear_config(:instance)
test "GET /.well-known/nodeinfo", %{conn: conn} do
links =
test "GET /.well-known/nodeinfo", %{conn: conn} do
links =
@@
-105,7
+105,7
@@
defmodule Pleroma.Web.NodeInfoTest do
end
describe "`metadata/federation/enabled`" do
end
describe "`metadata/federation/enabled`" do
- clear_config([:instance, :federating])
+
setup do:
clear_config([:instance, :federating])
test "it shows if federation is enabled/disabled", %{conn: conn} do
Pleroma.Config.put([:instance, :federating], true)
test "it shows if federation is enabled/disabled", %{conn: conn} do
Pleroma.Config.put([:instance, :federating], true)