ActivityPubTest: Make test easier to understand.
This commit is contained in:
parent
9e411372d0
commit
600e2ea073
1 changed files with 10 additions and 0 deletions
|
@ -1656,6 +1656,16 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
|
||||||
{:ok, _announce} = CommonAPI.repeat(post.id, third_user)
|
{:ok, _announce} = CommonAPI.repeat(post.id, third_user)
|
||||||
{:ok, announce} = CommonAPI.repeat(other_post.id, other_user)
|
{:ok, announce} = CommonAPI.repeat(other_post.id, other_user)
|
||||||
|
|
||||||
|
params = %{
|
||||||
|
type: ["Announce"]
|
||||||
|
}
|
||||||
|
|
||||||
|
results =
|
||||||
|
[user.ap_id | User.following(user)]
|
||||||
|
|> ActivityPub.fetch_activities(params)
|
||||||
|
|
||||||
|
assert length(results) == 3
|
||||||
|
|
||||||
params = %{
|
params = %{
|
||||||
type: ["Announce"],
|
type: ["Announce"],
|
||||||
announce_filtering_user: user
|
announce_filtering_user: user
|
||||||
|
|
Loading…
Reference in a new issue