mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-09 07:12:28 -04:00
Move Account Validity callbacks to a dedicated file (#15237)
This commit is contained in:
parent
f54f877f27
commit
4953cd71df
8 changed files with 154 additions and 106 deletions
|
@ -1249,9 +1249,8 @@ class AccountStatusTestCase(unittest.HomeserverTestCase):
|
|||
# account status will fail.
|
||||
return UserID.from_string(user_id).localpart == "someuser"
|
||||
|
||||
self.hs.get_account_validity_handler()._is_user_expired_callbacks.append(
|
||||
is_expired
|
||||
)
|
||||
account_validity_callbacks = self.hs.get_module_api_callbacks().account_validity
|
||||
account_validity_callbacks.is_user_expired_callbacks.append(is_expired)
|
||||
|
||||
self._test_status(
|
||||
users=[user],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue