summaryrefslogtreecommitdiff
path: root/test/support/http_request_mock.ex
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-10-05 12:46:06 +0200
committerThibaut Girka <thib@sitedethib.com>2019-10-05 13:56:40 +0200
commitb1ff66dc5f0f3915152314677bcd2379be0dd43b (patch)
treec717400ef4e504c94fe40c73e59fec78cdcd2d8a /test/support/http_request_mock.ex
parent791d93ff0ecb304e3278b786e66689521e9ad19d (diff)
downloadpleroma-b1ff66dc5f0f3915152314677bcd2379be0dd43b.tar.gz
pleroma-b1ff66dc5f0f3915152314677bcd2379be0dd43b.zip
Add test for handling Announces with inlined object from different origin
Diffstat (limited to 'test/support/http_request_mock.ex')
-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 7a87a2b35..b825a9307 100644
--- a/test/support/http_request_mock.ex
+++ b/test/support/http_request_mock.ex
@@ -46,6 +46,14 @@ defmodule HttpRequestMock do
}}
end
+ def get("https://mastodon.social/users/emelie/statuses/101849165031453404", _, _, _) do
+ {:ok,
+ %Tesla.Env{
+ status: 404,
+ body: ""
+ }}
+ end
+
def get("https://mastodon.social/users/emelie", _, _, _) do
{:ok,
%Tesla.Env{