Add tests for counters being updated on follow

This commit is contained in:
rinpatch 2019-07-31 19:37:55 +03:00
commit 301ea0dc04
6 changed files with 93 additions and 21 deletions

View file

@ -1149,16 +1149,6 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
"http://localhost:4001/users/masto_closed/followers?page=1" ->
%Tesla.Env{status: 403, body: ""}
"http://localhost:4001/users/masto_closed/following?page=1" ->
%Tesla.Env{
status: 200,
body:
Jason.encode!(%{
"id" => "http://localhost:4001/users/masto_closed/following?page=1",
"type" => "OrderedCollectionPage"
})
}
_ ->
apply(HttpRequestMock, :request, [env])
end
@ -1182,16 +1172,6 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
"http://localhost:4001/users/masto_closed/following?page=1" ->
%Tesla.Env{status: 403, body: ""}
"http://localhost:4001/users/masto_closed/followers?page=1" ->
%Tesla.Env{
status: 200,
body:
Jason.encode!(%{
"id" => "http://localhost:4001/users/masto_closed/followers?page=1",
"type" => "OrderedCollectionPage"
})
}
_ ->
apply(HttpRequestMock, :request, [env])
end