diff options
author | Mark Felder <feld@feld.me> | 2023-11-07 16:05:04 -0500 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2023-11-07 16:05:04 -0500 |
commit | a0e08c6ec21b724432ac77eb395a18e6f8e2a093 (patch) | |
tree | 879947cf9b932c2c312b604d8768bc7e472234e1 /test/support/http_request_mock.ex | |
parent | 63ef1dcedca7fb315f611388e477d3847d1acaa1 (diff) | |
parent | 11c520607fcb2bf5b8323d1b22b3123acf12efe1 (diff) | |
download | pleroma-a0e08c6ec21b724432ac77eb395a18e6f8e2a093.tar.gz pleroma-a0e08c6ec21b724432ac77eb395a18e6f8e2a093.zip |
Merge branch 'develop' into phoenix1.7
Diffstat (limited to 'test/support/http_request_mock.ex')
-rw-r--r-- | test/support/http_request_mock.ex | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index b0cf613ac..78a367024 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -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)}"} |