diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-06-23 05:30:34 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-07-15 12:32:42 +0200 |
commit | c19bdc811e526f83a2120c58f858044f4ff96e5f (patch) | |
tree | 3f98f5464675da0f7064da1b8d876f596cba4a13 /test/support/http_request_mock.ex | |
parent | d713930ea7fe78f705f534febe4ceaf0a0216d24 (diff) | |
download | pleroma-c19bdc811e526f83a2120c58f858044f4ff96e5f.tar.gz pleroma-c19bdc811e526f83a2120c58f858044f4ff96e5f.zip |
Fix attachments in polls
Diffstat (limited to 'test/support/http_request_mock.ex')
-rw-r--r-- | test/support/http_request_mock.ex | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 19a202654..eeeba7880 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -82,6 +82,14 @@ defmodule HttpRequestMock do }} end + def get("https://patch.cx/objects/tesla_mock/poll_attachment", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/tesla_mock/poll_attachment.json") + }} + end + def get( "https://mastodon.social/.well-known/webfinger?resource=https://mastodon.social/users/emelie", _, |