projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add include for the "Further reading" section
[akkoma]
/
test
/
moderation_log_test.exs
diff --git
a/test/moderation_log_test.exs
b/test/moderation_log_test.exs
index 6363db5aa3cca5fa3ac45eed95d9a00e047cba85..59f4d67f8a261f85ba3ed0d838bae348a18e38c0 100644
(file)
--- a/
test/moderation_log_test.exs
+++ b/
test/moderation_log_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.ModerationLogTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.ModerationLogTest do
@@
-24,13
+24,13
@@
defmodule Pleroma.ModerationLogTest do
{:ok, _} =
ModerationLog.insert_log(%{
actor: moderator,
{:ok, _} =
ModerationLog.insert_log(%{
actor: moderator,
- subject:
subject1
,
+ subject:
[subject1]
,
action: "delete"
})
log = Repo.one(ModerationLog)
action: "delete"
})
log = Repo.one(ModerationLog)
- assert log.data["message"] == "@#{moderator.nickname} deleted user @#{subject1.nickname}"
+ assert log.data["message"] == "@#{moderator.nickname} deleted user
s:
@#{subject1.nickname}"
end
test "logging user creation by moderator", %{
end
test "logging user creation by moderator", %{
@@
-128,7
+128,7
@@
defmodule Pleroma.ModerationLogTest do
{:ok, _} =
ModerationLog.insert_log(%{
actor: moderator,
{:ok, _} =
ModerationLog.insert_log(%{
actor: moderator,
- subject:
subject1
,
+ subject:
[subject1]
,
action: "grant",
permission: "moderator"
})
action: "grant",
permission: "moderator"
})
@@
-142,7
+142,7
@@
defmodule Pleroma.ModerationLogTest do
{:ok, _} =
ModerationLog.insert_log(%{
actor: moderator,
{:ok, _} =
ModerationLog.insert_log(%{
actor: moderator,
- subject:
subject1
,
+ subject:
[subject1]
,
action: "revoke",
permission: "moderator"
})
action: "revoke",
permission: "moderator"
})
@@
-214,7
+214,7
@@
defmodule Pleroma.ModerationLogTest do
{:ok, _} =
ModerationLog.insert_log(%{
actor: moderator,
{:ok, _} =
ModerationLog.insert_log(%{
actor: moderator,
- action: "report_
respons
e",
+ action: "report_
not
e",
subject: report,
text: "look at this"
})
subject: report,
text: "look at this"
})
@@
-222,7
+222,7
@@
defmodule Pleroma.ModerationLogTest do
log = Repo.one(ModerationLog)
assert log.data["message"] ==
log = Repo.one(ModerationLog)
assert log.data["message"] ==
- "@#{moderator.nickname}
responded with
'look at this' to report ##{report.id}"
+ "@#{moderator.nickname}
added note
'look at this' to report ##{report.id}"
end
test "logging status sensitivity update", %{moderator: moderator} do
end
test "logging status sensitivity update", %{moderator: moderator} do