diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2019-12-01 16:18:16 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-12-01 16:18:16 +0300 |
commit | 88f7cf51d43181b27db5ff1807d3e706fa336bac (patch) | |
tree | 3c3f8ba3b7685290e26c3582eeba7ba55ca1d10b /test/support/http_request_mock.ex | |
parent | 708fd234bdff5423ca6d8003232eca0df231bbc2 (diff) | |
parent | 0d24ab04c5ea779432b4ea174a1d470dac87315d (diff) | |
download | pleroma-88f7cf51d43181b27db5ff1807d3e706fa336bac.tar.gz pleroma-88f7cf51d43181b27db5ff1807d3e706fa336bac.zip |
Merge branch 'develop' into issue/1411
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 965335e96..e3a621f49 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -1035,6 +1035,22 @@ defmodule HttpRequestMock do }} end + def get("http://localhost:8080/followers/fuser3", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/users_mock/friendica_followers.json") + }} + end + + def get("http://localhost:8080/following/fuser3", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/users_mock/friendica_following.json") + }} + end + def get("http://localhost:4001/users/fuser2/followers", _, _, _) do {:ok, %Tesla.Env{ |