diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-11-05 16:46:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-05 16:46:39 +0000 |
commit | e78167c94b3f63136f7d0e4f32a05ad1befdc0ec (patch) | |
tree | cdfdfbfd73eceb822e4944a9506dd61ce0870f23 /tests/rest/media/v1 | |
parent | Strip overlong OpenGraph data from url preview (diff) | |
download | synapse-e78167c94b3f63136f7d0e4f32a05ad1befdc0ec.tar.xz |
Apply suggestions from code review
Co-Authored-By: Brendan Abolivier <babolivier@matrix.org> Co-Authored-By: Erik Johnston <erik@matrix.org>
Diffstat (limited to 'tests/rest/media/v1')
-rw-r--r-- | tests/rest/media/v1/test_url_preview.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/rest/media/v1/test_url_preview.py b/tests/rest/media/v1/test_url_preview.py index da19a8e86f..852b8ab11c 100644 --- a/tests/rest/media/v1/test_url_preview.py +++ b/tests/rest/media/v1/test_url_preview.py @@ -279,6 +279,7 @@ class URLPreviewTests(unittest.HomeserverTestCase): self.pump() self.assertEqual(channel.code, 200) res = channel.json_body + # We should only see the `og:description` field, as `title` is too long and should be stripped out self.assertCountEqual(["og:description"], res.keys()) def test_ipaddr(self): |