diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-12-19 17:24:08 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-12-19 17:24:08 +0300 |
commit | ead2d18826cf446fd7da542c55b6601e9bfc001c (patch) | |
tree | 8fb08b5673235ae9844ca858a34b742d1b548a70 /test/support/http_request_mock.ex | |
parent | 455e072d27f28c39050b2dc24b346a8f2ef30f90 (diff) | |
parent | d23a80e6911a85e2377ad2336a050e0206c74db9 (diff) | |
download | pleroma-ead2d18826cf446fd7da542c55b6601e9bfc001c.tar.gz |
Merge remote-tracking branch 'remotes/origin/develop' into oauth-scopes-tweaks-and-tests
Diffstat (limited to 'test/support/http_request_mock.ex')
-rw-r--r-- | test/support/http_request_mock.ex | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index e3a621f49..f43de700d 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -308,6 +308,24 @@ defmodule HttpRequestMock do }} end + def get("https://mobilizon.org/events/252d5816-00a3-4a89-a66f-15bf65c33e39", _, _, + Accept: "application/activity+json" + ) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/tesla_mock/mobilizon.org-event.json") + }} + end + + def get("https://mobilizon.org/@tcit", _, _, Accept: "application/activity+json") do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/tesla_mock/mobilizon.org-user.json") + }} + end + def get("https://baptiste.gelez.xyz/@/BaptisteGelez", _, _, _) do {:ok, %Tesla.Env{ |