diff options
author | Sergey Suprunenko <suprunenko.s@gmail.com> | 2019-05-30 21:03:31 +0000 |
---|---|---|
committer | feld <feld@feld.me> | 2019-05-30 21:03:31 +0000 |
commit | 1690be991ede33998203226998b8023a247a4f84 (patch) | |
tree | e786a84700608abe39307ffe241a0e3e0164e105 /test/support/http_request_mock.ex | |
parent | 91ac8b075b0a8c82b5e8a9d3316724e534486932 (diff) | |
download | pleroma-1690be991ede33998203226998b8023a247a4f84.tar.gz pleroma-1690be991ede33998203226998b8023a247a4f84.zip |
Replace missing non-nullable Card attributes with empty strings
Diffstat (limited to 'test/support/http_request_mock.ex')
-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")}} |