diff options
author | Sachin Joshi <satchin.joshi@gmail.com> | 2019-04-01 22:12:02 +0545 |
---|---|---|
committer | Sachin Joshi <satchin.joshi@gmail.com> | 2019-04-01 22:26:58 +0545 |
commit | 1d01e8e656c364b97b9ee36a6173a830d3f5f4fc (patch) | |
tree | 8b7fb86f0a2bf63a8409e8214bca19fd8e76f95a /test/support | |
parent | 9e3899bf36cea47560c5de1d4787125f6296a3b8 (diff) | |
download | pleroma-1d01e8e656c364b97b9ee36a6173a830d3f5f4fc.tar.gz pleroma-1d01e8e656c364b97b9ee36a6173a830d3f5f4fc.zip |
[OStatus] adds status to pleroma instance if the url given is a status
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/http_request_mock.ex | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 78e8efc9d..2148bd4e7 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -36,6 +36,22 @@ 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://osada.macgirvin.com/.well-known/webfinger?resource=acct:mike@osada.macgirvin.com", _, |