diff options
author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2021-03-23 09:27:03 +0000 |
---|---|---|
committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2021-03-23 09:27:03 +0000 |
commit | c09844d3d250feccce08cf06d6f2f326daf897a7 (patch) | |
tree | e82f7305c6362dc41d0a3d6119759cc2d491b822 /test/support/http_request_mock.ex | |
parent | 572363793f27895903a8c156fd614ec5c7493cd1 (diff) | |
parent | d3660b24d37862bb58cf309c582cfe7432fd7bb6 (diff) | |
download | pleroma-c09844d3d250feccce08cf06d6f2f326daf897a7.tar.gz pleroma-c09844d3d250feccce08cf06d6f2f326daf897a7.zip |
Merge branch 'fix/copy-emoji-summary' into 'develop'
Copy emoji in the subject from parent post
See merge request pleroma/pleroma!3378
Diffstat (limited to 'test/support/http_request_mock.ex')
-rw-r--r-- | test/support/http_request_mock.ex | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 1e98020f0..eb692fab5 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -1278,6 +1278,15 @@ defmodule HttpRequestMock do }} end + def get("https://patch.cx/objects/a399c28e-c821-4820-bc3e-4afeb044c16f", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/tesla_mock/emoji-in-summary.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)}, #{ |