projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add dark and light theme mode to docs, detection, and button
[akkoma]
/
test
/
pleroma
/
web
/
activity_pub
/
mrf
/
vocabulary_policy_test.exs
diff --git
a/test/pleroma/web/activity_pub/mrf/vocabulary_policy_test.exs
b/test/pleroma/web/activity_pub/mrf/vocabulary_policy_test.exs
index d368d70b7c13b785c55d67af9b926c109f54dba7..87d1d79b524536c196c8589e5bf5fb02febea2b8 100644
(file)
--- a/
test/pleroma/web/activity_pub/mrf/vocabulary_policy_test.exs
+++ b/
test/pleroma/web/activity_pub/mrf/vocabulary_policy_test.exs
@@
-11,7
+11,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.VocabularyPolicyTest do
setup do: clear_config([:mrf_vocabulary, :accept])
test "it accepts based on parent activity type" do
setup do: clear_config([:mrf_vocabulary, :accept])
test "it accepts based on parent activity type" do
-
Pleroma.Config.put
([:mrf_vocabulary, :accept], ["Like"])
+
clear_config
([:mrf_vocabulary, :accept], ["Like"])
message = %{
"type" => "Like",
message = %{
"type" => "Like",
@@
-22,7
+22,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.VocabularyPolicyTest do
end
test "it accepts based on child object type" do
end
test "it accepts based on child object type" do
-
Pleroma.Config.put
([:mrf_vocabulary, :accept], ["Create", "Note"])
+
clear_config
([:mrf_vocabulary, :accept], ["Create", "Note"])
message = %{
"type" => "Create",
message = %{
"type" => "Create",
@@
-36,7
+36,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.VocabularyPolicyTest do
end
test "it does not accept disallowed child objects" do
end
test "it does not accept disallowed child objects" do
-
Pleroma.Config.put
([:mrf_vocabulary, :accept], ["Create", "Note"])
+
clear_config
([:mrf_vocabulary, :accept], ["Create", "Note"])
message = %{
"type" => "Create",
message = %{
"type" => "Create",
@@
-50,7
+50,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.VocabularyPolicyTest do
end
test "it does not accept disallowed parent types" do
end
test "it does not accept disallowed parent types" do
-
Pleroma.Config.put
([:mrf_vocabulary, :accept], ["Announce", "Note"])
+
clear_config
([:mrf_vocabulary, :accept], ["Announce", "Note"])
message = %{
"type" => "Create",
message = %{
"type" => "Create",
@@
-68,7
+68,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.VocabularyPolicyTest do
setup do: clear_config([:mrf_vocabulary, :reject])
test "it rejects based on parent activity type" do
setup do: clear_config([:mrf_vocabulary, :reject])
test "it rejects based on parent activity type" do
-
Pleroma.Config.put
([:mrf_vocabulary, :reject], ["Like"])
+
clear_config
([:mrf_vocabulary, :reject], ["Like"])
message = %{
"type" => "Like",
message = %{
"type" => "Like",
@@
-79,7
+79,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.VocabularyPolicyTest do
end
test "it rejects based on child object type" do
end
test "it rejects based on child object type" do
-
Pleroma.Config.put
([:mrf_vocabulary, :reject], ["Note"])
+
clear_config
([:mrf_vocabulary, :reject], ["Note"])
message = %{
"type" => "Create",
message = %{
"type" => "Create",
@@
-93,7
+93,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.VocabularyPolicyTest do
end
test "it passes through objects that aren't disallowed" do
end
test "it passes through objects that aren't disallowed" do
-
Pleroma.Config.put
([:mrf_vocabulary, :reject], ["Like"])
+
clear_config
([:mrf_vocabulary, :reject], ["Like"])
message = %{
"type" => "Announce",
message = %{
"type" => "Announce",