summary refs log tree commit diff
path: root/tests/rest/media/v1/test_url_preview.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-01-07 13:04:45 +0000
committerErik Johnston <erik@matrix.org>2021-01-07 13:04:45 +0000
commit82a91208d6a9fd3038e1ec4ddcc62cbe359f2a6b (patch)
tree4bc3e65a85fd5ea886128e0a5a96e0ce8872a8bb /tests/rest/media/v1/test_url_preview.py
parentMerge remote-tracking branch 'origin/develop' into matrix-org-hotfixes (diff)
parentImprove the performance of calculating ignored users in large rooms (#9024) (diff)
downloadsynapse-82a91208d6a9fd3038e1ec4ddcc62cbe359f2a6b.tar.xz
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
Diffstat (limited to 'tests/rest/media/v1/test_url_preview.py')
-rw-r--r--tests/rest/media/v1/test_url_preview.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/rest/media/v1/test_url_preview.py b/tests/rest/media/v1/test_url_preview.py

index 83d728b4a4..6968502433 100644 --- a/tests/rest/media/v1/test_url_preview.py +++ b/tests/rest/media/v1/test_url_preview.py
@@ -26,8 +26,15 @@ from twisted.test.proto_helpers import AccumulatingProtocol from tests import unittest from tests.server import FakeTransport +try: + import lxml +except ImportError: + lxml = None + class URLPreviewTests(unittest.HomeserverTestCase): + if not lxml: + skip = "url preview feature requires lxml" hijack_auth = True user_id = "@test:user"