Fix attachments in polls

This commit is contained in:
Haelwenn (lanodan) Monnier 2020-06-23 05:30:34 +02:00
commit c19bdc811e
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
6 changed files with 145 additions and 10 deletions

View file

@ -82,6 +82,14 @@ defmodule HttpRequestMock do
}}
end
def get("https://patch.cx/objects/tesla_mock/poll_attachment", _, _, _) do
{:ok,
%Tesla.Env{
status: 200,
body: File.read!("test/fixtures/tesla_mock/poll_attachment.json")
}}
end
def get(
"https://mastodon.social/.well-known/webfinger?resource=https://mastodon.social/users/emelie",
_,