projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treat any present value in "no_attachment_links" as true
[akkoma]
/
test
/
web
/
node_info_test.exs
diff --git
a/test/web/node_info_test.exs
b/test/web/node_info_test.exs
index a6376453caf6807b585f00d941b4cfb95750194c..6769a4490d4cce362be3c11d91c395cdfab9b112 100644
(file)
--- a/
test/web/node_info_test.exs
+++ b/
test/web/node_info_test.exs
@@
-1,10
+1,14
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Web.NodeInfoTest do
use Pleroma.Web.ConnCase
import Pleroma.Factory
test "nodeinfo shows staff accounts", %{conn: conn} do
defmodule Pleroma.Web.NodeInfoTest do
use Pleroma.Web.ConnCase
import Pleroma.Factory
test "nodeinfo shows staff accounts", %{conn: conn} do
- user = insert(:user, %{local: true, info: %{
"is_moderator" =>
true}})
+ user = insert(:user, %{local: true, info: %{
is_moderator:
true}})
conn =
conn
conn =
conn
@@
-15,7
+19,7
@@
defmodule Pleroma.Web.NodeInfoTest do
assert user.ap_id in result["metadata"]["staffAccounts"]
end
assert user.ap_id in result["metadata"]["staffAccounts"]
end
- test "returns 404 when federation is disabled" do
+ test "returns 404 when federation is disabled"
, %{conn: conn}
do
instance =
Application.get_env(:pleroma, :instance)
|> Keyword.put(:federating, false)
instance =
Application.get_env(:pleroma, :instance)
|> Keyword.put(:federating, false)
@@
-37,7
+41,7
@@
defmodule Pleroma.Web.NodeInfoTest do
Application.put_env(:pleroma, :instance, instance)
end
Application.put_env(:pleroma, :instance, instance)
end
- test "returns 200 when federation is enabled" do
+ test "returns 200 when federation is enabled"
, %{conn: conn}
do
conn
|> get("/.well-known/nodeinfo")
|> json_response(200)
conn
|> get("/.well-known/nodeinfo")
|> json_response(200)