summaryrefslogtreecommitdiff
path: root/test/support/http_request_mock.ex
diff options
context:
space:
mode:
authorkPherox <admin@mail.kr-kp.com>2019-11-30 15:24:08 +0900
committerkPherox <admin@mail.kr-kp.com>2019-11-30 15:43:12 +0900
commit1915b23e72c5cbed5c794f66eb0a727e719d3c57 (patch)
tree336cce7d402e82805af5f9160db87126d4cbfb8f /test/support/http_request_mock.ex
parent0326683932800c20dcec2b7d3500bff149cf091b (diff)
downloadpleroma-1915b23e72c5cbed5c794f66eb0a727e719d3c57.tar.gz
pleroma-1915b23e72c5cbed5c794f66eb0a727e719d3c57.zip
test missing first field
Diffstat (limited to 'test/support/http_request_mock.ex')
-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 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{