diff options
author | marcin mikołajczak <git@mkljczk.pl> | 2022-08-08 10:45:43 +0200 |
---|---|---|
committer | marcin mikołajczak <git@mkljczk.pl> | 2023-10-29 00:02:17 +0200 |
commit | e5bd1ee80154b31457567c3d31de6c63e0146352 (patch) | |
tree | e09b3ecd483f5984d22638faeedcc209f450fe78 /test/support | |
parent | 93370b870a8d16b5dada5ef7c7e3ef2de378395e (diff) | |
download | pleroma-e5bd1ee80154b31457567c3d31de6c63e0146352.tar.gz pleroma-e5bd1ee80154b31457567c3d31de6c63e0146352.zip |
Add entry to @context, tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'test/support')
-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 78a367024..2707804bc 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -1464,6 +1464,24 @@ defmodule HttpRequestMock do }} end + def get("https://friends.grishka.me/posts/54642", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/tesla_mock/smithereen_non_anonymous_poll.json"), + headers: activitypub_object_headers() + }} + end + + def get("https://friends.grishka.me/users/1", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/tesla_mock/smithereen_user.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)}"} |