diff options
author | lain <lain@soykaf.club> | 2020-06-10 12:15:56 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-06-10 12:15:56 +0200 |
commit | 600e2ea07396489325e06dee3e8432288e0e13c2 (patch) | |
tree | 2a576dbc4faa1a023b7b8ea05ec521b015b75d71 | |
parent | 9e411372d0b7ae286941063956305c0a2eae46a6 (diff) | |
download | pleroma-600e2ea07396489325e06dee3e8432288e0e13c2.tar.gz |
ActivityPubTest: Make test easier to understand.
-rw-r--r-- | test/web/activity_pub/activity_pub_test.exs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs index e17cc4ab1..6cd3b8d1b 100644 --- a/test/web/activity_pub/activity_pub_test.exs +++ b/test/web/activity_pub/activity_pub_test.exs @@ -1657,6 +1657,16 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do {: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 = %{ type: ["Announce"], announce_filtering_user: user } |