test: add kroeg fixtures

This commit is contained in:
William Pitcock 2018-08-14 17:07:01 +00:00
commit 7fbcd4caaf
3 changed files with 71 additions and 0 deletions

View file

@ -3,6 +3,18 @@ defmodule HTTPoisonMock do
def get(url, body \\ [], headers \\ [])
def get(
"https://puckipedia.com/",
[Accept: "application/activity+json"],
[]
) do
{:ok,
%Response{
status_code: 200,
body: File.read!("test/fixtures/httpoison_mock/puckipedia.com.json")
}}
end
def get(
"https://gerzilla.de/.well-known/webfinger?resource=acct:kaniini@gerzilla.de",
[Accept: "application/xrd+xml,application/jrd+json"],