aboutsummaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2019-05-30 21:03:31 +0000
committerfeld <feld@feld.me>2019-05-30 21:03:31 +0000
commit73a7420c23308d19aa270ba6345a9b2b963abee6 (patch)
treee786a84700608abe39307ffe241a0e3e0164e105 /test/support
parent91ac8b075b0a8c82b5e8a9d3316724e534486932 (diff)
parent1690be991ede33998203226998b8023a247a4f84 (diff)
downloadpleroma-73a7420c23308d19aa270ba6345a9b2b963abee6.tar.gz
Merge branch 'fix/ogp-missing-data' into 'develop'
Replace missing non-nullable Card attributes with empty strings See merge request pleroma/pleroma!1217
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 5b355bfe6..66d7d5ba9 100644
--- a/test/support/http_request_mock.ex
+++ b/test/support/http_request_mock.ex
@@ -728,6 +728,14 @@ defmodule HttpRequestMock do
{:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/rich_media/ogp.html")}}
end
+ def get("http://example.com/ogp-missing-data", _, _, _) do
+ {:ok,
+ %Tesla.Env{
+ status: 200,
+ body: File.read!("test/fixtures/rich_media/ogp-missing-data.html")
+ }}
+ end
+
def get("http://example.com/malformed", _, _, _) do
{:ok,
%Tesla.Env{status: 200, body: File.read!("test/fixtures/rich_media/malformed-data.html")}}