summaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorHakaba Hitoyo <hakabahitoyo@example.com>2018-07-19 17:42:00 +0900
committerHakaba Hitoyo <hakabahitoyo@example.com>2018-07-19 17:42:00 +0900
commitcc9c062b553e20018e406dc605e6e504ad3134a6 (patch)
tree9cf2a1e19697ceefa99671980f42901e0025eaa0 /test/support
parentb12d17d2ce270e0d964f599efd4f16fba95b17ce (diff)
parent41b0ecef959df0a1cda71e56e256cacebe48d56f (diff)
downloadpleroma-cc9c062b553e20018e406dc605e6e504ad3134a6.tar.gz
pleroma-cc9c062b553e20018e406dc605e6e504ad3134a6.zip
merge
Diffstat (limited to 'test/support')
-rw-r--r--test/support/httpoison_mock.ex16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/support/httpoison_mock.ex b/test/support/httpoison_mock.ex
index befebad8a..a52d44ed6 100644
--- a/test/support/httpoison_mock.ex
+++ b/test/support/httpoison_mock.ex
@@ -736,6 +736,22 @@ defmodule HTTPoisonMock do
}}
end
+ def get("https://baptiste.gelez.xyz/~/PlumeDevelopment/this-month-in-plume-june-2018/", _, _) do
+ {:ok,
+ %Response{
+ status_code: 200,
+ body: File.read!("test/fixtures/httpoison_mock/baptiste.gelex.xyz-article.json")
+ }}
+ end
+
+ def get("https://baptiste.gelez.xyz/@/BaptisteGelez", _, _) do
+ {:ok,
+ %Response{
+ status_code: 200,
+ body: File.read!("test/fixtures/httpoison_mock/baptiste.gelex.xyz-user.json")
+ }}
+ end
+
def get(url, body, headers) do
{:error,
"Not implemented the mock response for get #{inspect(url)}, #{inspect(body)}, #{