Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/16253.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix `IntrospectionTokenCacheInvalidationTestCase` when `authlib` is not available.
9 changes: 9 additions & 0 deletions tests/replication/test_intro_token_invalidation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,17 @@
import synapse.rest.admin._base

from tests.replication._base import BaseMultiWorkerStreamTestCase
from tests.unittest import skip_unless

try:
import authlib # noqa: F401

HAS_AUTHLIB = True
except ImportError:
HAS_AUTHLIB = False


@skip_unless(HAS_AUTHLIB, "requires authlib")
class IntrospectionTokenCacheInvalidationTestCase(BaseMultiWorkerStreamTestCase):
servlets = [synapse.rest.admin.register_servlets]

Expand Down