summaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-08-07 10:44:06 +0000
committerlain <lain@soykaf.club>2020-08-07 10:44:06 +0000
commit34cbe9f44a0266cd5ec652c3e70021ef928a7f31 (patch)
treec9ad17f8fd0718fd50ae7e489cbd0eaf7e5efcb0 /test/support
parentb9ebb55d2aabdf4c99b05efab9d4ad31b25f888d (diff)
parent9d7ce1a6d014499eb4d55190b81e55da849b5ad0 (diff)
downloadpleroma-34cbe9f44a0266cd5ec652c3e70021ef928a7f31.tar.gz
pleroma-34cbe9f44a0266cd5ec652c3e70021ef928a7f31.zip
Merge branch 'features/poll-validation' into 'develop'
Poll and votes pipeline ingestion Closes #1362 and #1852 See merge request pleroma/pleroma!2635
Diffstat (limited to 'test/support')
-rw-r--r--test/support/http_request_mock.ex8
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",
_,