summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-11-05 16:46:39 +0000
committerGitHub <noreply@github.com>2019-11-05 16:46:39 +0000
commite78167c94b3f63136f7d0e4f32a05ad1befdc0ec (patch)
treecdfdfbfd73eceb822e4944a9506dd61ce0870f23 /tests
parentStrip overlong OpenGraph data from url preview (diff)
downloadsynapse-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 '')
-rw-r--r--tests/rest/media/v1/test_url_preview.py1
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):