ActivityPubTest: Make test easier to understand.

This commit is contained in:
lain 2020-06-10 12:15:56 +02:00
parent 9e411372d0
commit 600e2ea073

View File

@ -1657,6 +1657,16 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
{:ok, announce} = CommonAPI.repeat(other_post.id, other_user) {:ok, announce} = CommonAPI.repeat(other_post.id, other_user)
params = %{ params = %{
type: ["Announce"]
}
results =
[user.ap_id | User.following(user)]
|> ActivityPub.fetch_activities(params)
assert length(results) == 3
params = %{
type: ["Announce"], type: ["Announce"],
announce_filtering_user: user announce_filtering_user: user
} }