diff --git a/tests/rest/client/test_auth_issuer.py b/tests/rest/client/test_auth_issuer.py index 27a1dd945f31..964baeec324a 100644 --- a/tests/rest/client/test_auth_issuer.py +++ b/tests/rest/client/test_auth_issuer.py @@ -15,7 +15,8 @@ from synapse.rest.client import auth_issuer -from tests.unittest import HomeserverTestCase, override_config +from tests.unittest import HomeserverTestCase, override_config, skip_unless +from tests.utils import HAS_AUTHLIB ISSUER = "https://account.example.com/" @@ -33,6 +34,7 @@ def test_returns_404_when_msc3861_disabled(self) -> None: ) self.assertEqual(channel.code, HTTPStatus.NOT_FOUND) + @skip_unless(HAS_AUTHLIB, "requires authlib") @override_config( { "disable_registration": True,