diff options
author | rinpatch <rinpatch@sdf.org> | 2019-07-31 19:37:55 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-07-31 21:09:13 +0300 |
commit | 301ea0dc0466371032f44f3e936d1b951ed9784c (patch) | |
tree | 2f986005093c7b422675bb17c77f2f6fb0582619 /test/support/http_request_mock.ex | |
parent | f42719506c539a4058c52d3a6e4a828948ac74ce (diff) | |
download | pleroma-301ea0dc0466371032f44f3e936d1b951ed9784c.tar.gz pleroma-301ea0dc0466371032f44f3e936d1b951ed9784c.zip |
Add tests for counters being updated on follow
Diffstat (limited to 'test/support/http_request_mock.ex')
-rw-r--r-- | test/support/http_request_mock.ex | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 2ed5f5042..bdfe43b28 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -792,6 +792,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{ @@ -800,6 +808,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{ |