From: lain Date: Wed, 10 Jun 2020 10:15:56 +0000 (+0200) Subject: ActivityPubTest: Make test easier to understand. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=600e2ea07396489325e06dee3e8432288e0e13c2;p=akkoma ActivityPubTest: Make test easier to understand. --- 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 @@ -1656,6 +1656,16 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do {:ok, _announce} = CommonAPI.repeat(post.id, third_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 = %{ type: ["Announce"], announce_filtering_user: user