Add WebFinger test for AP-only account

This commit is contained in:
kPherox 2019-07-25 01:27:34 +09:00
commit 8d9f43e1d1
No known key found for this signature in database
GPG key ID: C04751C2BFA2F62D
3 changed files with 32 additions and 0 deletions

View file

@ -915,6 +915,14 @@ defmodule HttpRequestMock do
{:ok, %Tesla.Env{status: 404, body: ""}}
end
def get("https://mstdn.jp/.well-known/webfinger?resource=acct:kpherox@mstdn.jp", _, _, _) do
{:ok,
%Tesla.Env{
status: 200,
body: File.read!("test/fixtures/tesla_mock/kpherox@mstdn.jp.xml")
}}
end
def get(url, query, body, headers) do
{:error,
"Not implemented the mock response for get #{inspect(url)}, #{query}, #{inspect(body)}, #{