Add test for handling Announces with inlined object from different origin

This commit is contained in:
Thibaut Girka 2019-10-05 12:46:06 +02:00
commit b1ff66dc5f
3 changed files with 59 additions and 0 deletions

View file

@ -46,6 +46,14 @@ defmodule HttpRequestMock do
}}
end
def get("https://mastodon.social/users/emelie/statuses/101849165031453404", _, _, _) do
{:ok,
%Tesla.Env{
status: 404,
body: ""
}}
end
def get("https://mastodon.social/users/emelie", _, _, _) do
{:ok,
%Tesla.Env{