Handle incoming Question objects

This commit is contained in:
rinpatch 2019-05-15 20:10:16 +03:00
commit 62e42b03ab
6 changed files with 190 additions and 2 deletions

View file

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