diff options
author | lain <lain@soykaf.club> | 2019-04-02 16:10:38 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-04-02 16:10:38 +0200 |
commit | 39bcf93007a5a52ba374099d6b04692361e7fa9b (patch) | |
tree | 358becb7f089c62d9f2a2634ca766ee7e7bad3f3 /test/support/http_request_mock.ex | |
parent | fd07745d1b18e2a1eeb88a99eaa9d5e728d1aa71 (diff) | |
parent | 180b87257cae481d4d9ffc9f03a06268ad8df569 (diff) | |
download | pleroma-39bcf93007a5a52ba374099d6b04692361e7fa9b.tar.gz pleroma-39bcf93007a5a52ba374099d6b04692361e7fa9b.zip |
Merge remote-tracking branch 'origin/develop' into fix-slow-relationships
Diffstat (limited to 'test/support/http_request_mock.ex')
-rw-r--r-- | test/support/http_request_mock.ex | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 78e8efc9d..d3b547d91 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -36,6 +36,43 @@ defmodule HttpRequestMock do }} end + def get("https://mastodon.social/users/emelie/statuses/101849165031453009", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/httpoison_mock/status.emelie.json") + }} + end + + def get("https://mastodon.social/users/emelie", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/httpoison_mock/emelie.json") + }} + end + + def get( + "https://mastodon.social/.well-known/webfinger?resource=https://mastodon.social/users/emelie", + _, + _, + _ + ) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/httpoison_mock/webfinger_emelie.json") + }} + end + + def get("https://mastodon.social/users/emelie.atom", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/httpoison_mock/emelie.atom") + }} + end + def get( "https://osada.macgirvin.com/.well-known/webfinger?resource=acct:mike@osada.macgirvin.com", _, |