summaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-05-15 20:10:16 +0300
committerrinpatch <rinpatch@sdf.org>2019-05-15 20:10:16 +0300
commit62e42b03abd2cede85e85f62c35f62a8c42e8ea1 (patch)
tree6390769e82ff7f665ac850578d63628b98b31b8e /test/support
parent131f88320740bec9c74e4280a6b1a7d8641ee367 (diff)
downloadpleroma-62e42b03abd2cede85e85f62c35f62a8c42e8ea1.tar.gz
pleroma-62e42b03abd2cede85e85f62c35f62a8c42e8ea1.zip
Handle incoming Question objects
Diffstat (limited to 'test/support')
-rw-r--r--test/support/http_request_mock.ex8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex
index 5b355bfe6..3064c032b 100644
--- a/test/support/http_request_mock.ex
+++ b/test/support/http_request_mock.ex
@@ -52,6 +52,14 @@ defmodule HttpRequestMock do
}}
end
+ def get("https://mastodon.sdf.org/users/rinpatch", _, _, _) do
+ {:ok,
+ %Tesla.Env{
+ status: 200,
+ body: File.read!("test/fixtures/httpoison_mock/rinpatch.json")
+ }}
+ end
+
def get(
"https://mastodon.social/.well-known/webfinger?resource=https://mastodon.social/users/emelie",
_,