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

Commit

Permalink
Only run new test if AUTHLIB is available
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Nov 15, 2023
1 parent 5c0e682 commit f5ce34e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/rest/client/test_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
from tests.http.server._base import make_request_with_cancellation_test
from tests.unittest import override_config

try:
import authlib # noqa: F401

HAS_AUTHLIB = True
except ImportError:
HAS_AUTHLIB = False


class KeyQueryTestCase(unittest.HomeserverTestCase):
servlets = [
Expand Down Expand Up @@ -270,6 +277,7 @@ class SigningKeyUploadServletTestCase(unittest.HomeserverTestCase):

OIDC_ADMIN_TOKEN = "_oidc_admin_token"

@unittest.skip_unless(HAS_AUTHLIB, "requires authlib")
@override_config(
{
"enable_registration": False,
Expand Down

0 comments on commit f5ce34e

Please sign in to comment.