diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2019-12-04 09:34:44 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-12-04 09:34:44 +0300 |
commit | 29a98b86b7056540ed4102a83dfe6a7e809c2519 (patch) | |
tree | 559c763669b1f647f96ff9fa67e36343da87565f /test/support/http_request_mock.ex | |
parent | 652cc6ba4b7a0494cc96ef4a9bfcaa3b5e5be60e (diff) | |
parent | 7722e5a67a46304f3ae0e37f674a44ca9268be5e (diff) | |
download | pleroma-29a98b86b7056540ed4102a83dfe6a7e809c2519.tar.gz pleroma-29a98b86b7056540ed4102a83dfe6a7e809c2519.zip |
Merge branch 'develop' into issue/1383
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{ |