Transmogrifier: fetch quoted post

This commit is contained in:
Alex Gleason 2022-01-22 18:46:58 -06:00 committed by tusooa
commit b022d6635d
No known key found for this signature in database
GPG key ID: 42AEC43D48433C51
5 changed files with 165 additions and 0 deletions

View file

@ -1380,6 +1380,15 @@ defmodule HttpRequestMock do
}}
end
def get("https://misskey.io/users/83ssedkv53", _, _, _) do
{:ok,
%Tesla.Env{
status: 200,
body: File.read!("test/fixtures/tesla_mock/aimu@misskey.io.json"),
headers: activitypub_object_headers()
}}
end
def get("https://gleasonator.com/users/macgirvin", _, _, _) do
{:ok,
%Tesla.Env{
@ -1446,6 +1455,15 @@ defmodule HttpRequestMock do
}}
end
def get("https://misskey.io/notes/8vs6wxufd0", _, _, _) do
{:ok,
%Tesla.Env{
status: 200,
body: File.read!("test/fixtures/tesla_mock/misskey.io_8vs6wxufd0.json"),
headers: activitypub_object_headers()
}}
end
def get(url, query, body, headers) do
{:error,
"Mock response not implemented for GET #{inspect(url)}, #{query}, #{inspect(body)}, #{inspect(headers)}"}