Announcements: Fix all tests.

This commit is contained in:
lain 2020-05-21 13:16:21 +02:00
commit 23e248694d
21 changed files with 64 additions and 136 deletions

View file

@ -325,14 +325,6 @@ defmodule Pleroma.Web.ActivityPub.SideEffectsTest do
assert user.ap_id in object.data["announcements"]
end
test "does not add the announce to the original object if the announce is private", %{
private_announce: announce
} do
{:ok, announce, _} = SideEffects.handle(announce)
object = Object.get_by_ap_id(announce.data["object"])
assert object.data["announcement_count"] == nil
end
test "does not add the announce to the original object if the actor is a service actor", %{
relay_announce: announce
} do