diff options
author | feld <feld@feld.me> | 2019-05-30 21:03:31 +0000 |
---|---|---|
committer | feld <feld@feld.me> | 2019-05-30 21:03:31 +0000 |
commit | 73a7420c23308d19aa270ba6345a9b2b963abee6 (patch) | |
tree | e786a84700608abe39307ffe241a0e3e0164e105 /test/support | |
parent | 91ac8b075b0a8c82b5e8a9d3316724e534486932 (diff) | |
parent | 1690be991ede33998203226998b8023a247a4f84 (diff) | |
download | pleroma-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.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 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")}} |