projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e41137
)
ActivityPubTest: Make test easier to understand.
author
lain
<lain@soykaf.club>
Wed, 10 Jun 2020 10:15:56 +0000
(12:15 +0200)
committer
lain
<lain@soykaf.club>
Wed, 10 Jun 2020 10:15:56 +0000
(12:15 +0200)
test/web/activity_pub/activity_pub_test.exs
patch
|
blob
|
history
diff --git
a/test/web/activity_pub/activity_pub_test.exs
b/test/web/activity_pub/activity_pub_test.exs
index e17cc4ab14f5d395abd6504d558e76fc6f233386..6cd3b8d1b4342bd55e3af7f5356119b9ac1841a7 100644
(file)
--- 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