Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
skip unless HAS_AUTHLIB
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Dec 5, 2023
1 parent 3074249 commit ab93316
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/rest/client/test_auth_issuer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/"

Expand All @@ -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,
Expand Down

0 comments on commit ab93316

Please sign in to comment.