summaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-08-02 11:23:07 +0000
committerlain <lain@soykaf.club>2019-08-02 11:23:07 +0000
commit5ff8f07ca906d77a6ec1d5ba912a787f855364f9 (patch)
treeff047fd71408e947b91ce9a44fe3fb026e7c684f /test/support
parent1fe092e03cab11a08e5a15d6bbaf0fd603ef4a00 (diff)
parent301ea0dc0466371032f44f3e936d1b951ed9784c (diff)
downloadpleroma-5ff8f07ca906d77a6ec1d5ba912a787f855364f9.tar.gz
pleroma-5ff8f07ca906d77a6ec1d5ba912a787f855364f9.zip
Merge branch 'feature/hide-follows-remote' into 'develop'
Refactor Follows/Followers counter syncronization and set hide_followers/hide_follows for remote users See merge request pleroma/pleroma!1411
Diffstat (limited to 'test/support')
-rw-r--r--test/support/http_request_mock.ex16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex
index d767ab9d4..3adb5ba3b 100644
--- a/test/support/http_request_mock.ex
+++ b/test/support/http_request_mock.ex
@@ -796,6 +796,14 @@ defmodule HttpRequestMock do
}}
end
+ def get("http://localhost:4001/users/masto_closed/followers?page=1", _, _, _) do
+ {:ok,
+ %Tesla.Env{
+ status: 200,
+ body: File.read!("test/fixtures/users_mock/masto_closed_followers_page.json")
+ }}
+ end
+
def get("http://localhost:4001/users/masto_closed/following", _, _, _) do
{:ok,
%Tesla.Env{
@@ -804,6 +812,14 @@ defmodule HttpRequestMock do
}}
end
+ def get("http://localhost:4001/users/masto_closed/following?page=1", _, _, _) do
+ {:ok,
+ %Tesla.Env{
+ status: 200,
+ body: File.read!("test/fixtures/users_mock/masto_closed_following_page.json")
+ }}
+ end
+
def get("http://localhost:4001/users/fuser2/followers", _, _, _) do
{:ok,
%Tesla.Env{