This commit is contained in:
Alexander Strizhakov 2019-12-30 11:39:44 +03:00
parent 932b842c8c
commit 290f6aecef
No known key found for this signature in database
GPG Key ID: 022896A53AEF1381
1 changed files with 11 additions and 11 deletions

View File

@ -392,16 +392,16 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
with_mock(Utils, [:passthrough], maybe_federate: fn _ -> {:error, :reverted} end) do
assert {:error, :reverted} =
ActivityPub.create(%{
to: ["user1", "user2"],
actor: user,
context: "",
object: %{
"to" => ["user1", "user2"],
"type" => "Note",
"content" => "testing"
}
})
ActivityPub.create(%{
to: ["user1", "user2"],
actor: user,
context: "",
object: %{
"to" => ["user1", "user2"],
"type" => "Note",
"content" => "testing"
}
})
end
assert Repo.aggregate(Activity, :count, :id) == 0
@ -969,7 +969,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
with_mock(Utils, [:passthrough], maybe_federate: fn _ -> {:error, :reverted} end) do
assert {:error, :reverted} =
ActivityPub.unreact_with_emoji(reactor, reaction_activity.data["id"])
ActivityPub.unreact_with_emoji(reactor, reaction_activity.data["id"])
end
object = Object.get_by_ap_id(object.data["id"])