diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2019-10-21 11:32:28 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-10-21 11:32:28 +0300 |
commit | 243719a96584901c560d75333c79b056c5a5c395 (patch) | |
tree | fd5390210264a0b21b255a1d73d61dc2ce2304cd /test/support/http_request_mock.ex | |
parent | 66b5d0ff558bffeddf6475af72b73bf2870512f6 (diff) | |
parent | 2ebe8c416a72b512feaba87040982da5bcf865cf (diff) | |
download | pleroma-243719a96584901c560d75333c79b056c5a5c395.tar.gz pleroma-243719a96584901c560d75333c79b056c5a5c395.zip |
Merge branch 'develop' into feature/masto_api_markers
Diffstat (limited to 'test/support/http_request_mock.ex')
-rw-r--r-- | test/support/http_request_mock.ex | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 4feb57f3a..eba22c40b 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -38,6 +38,14 @@ defmodule HttpRequestMock do }} end + def get("https://shitposter.club/users/moonman", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/tesla_mock/moonman@shitposter.club.json") + }} + end + def get("https://mastodon.social/users/emelie/statuses/101849165031453009", _, _, _) do {:ok, %Tesla.Env{ @@ -340,6 +348,14 @@ defmodule HttpRequestMock do }} end + def get("http://mastodon.example.org/users/relay", _, _, Accept: "application/activity+json") do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/tesla_mock/relay@mastdon.example.org.json") + }} + end + def get("http://mastodon.example.org/users/gargron", _, _, Accept: "application/activity+json") do {:error, :nxdomain} end @@ -620,7 +636,7 @@ defmodule HttpRequestMock do {:ok, %Tesla.Env{ status: 200, - body: File.read!("test/fixtures/tesla_mock/https___shitposter.club_notice_2827873.html") + body: File.read!("test/fixtures/tesla_mock/https___shitposter.club_notice_2827873.json") }} end |