aboutsummaryrefslogtreecommitdiff
path: root/test/support/httpoison_mock.ex
diff options
context:
space:
mode:
Diffstat (limited to 'test/support/httpoison_mock.ex')
-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 527c2e1f7..4ee2feb95 100644
--- a/test/support/httpoison_mock.ex
+++ b/test/support/httpoison_mock.ex
@@ -760,6 +760,22 @@ defmodule HTTPoisonMock do
}}
end
+ def get("https://peertube.moe/videos/watch/df5f464b-be8d-46fb-ad81-2d4c2d1630e3", _, _) do
+ {:ok,
+ %Response{
+ status_code: 200,
+ body: File.read!("test/fixtures/httpoison_mock/peertube.moe-vid.json")
+ }}
+ end
+
+ def get("https://peertube.moe/accounts/7even", _, _) do
+ {:ok,
+ %Response{
+ status_code: 200,
+ body: File.read!("test/fixtures/httpoison_mock/7even.json")
+ }}
+ end
+
def get(url, body, headers) do
{:error,
"Not implemented the mock response for get #{inspect(url)}, #{inspect(body)}, #{