Add account expiration feature

This commit is contained in:
Brendan Abolivier 2019-04-08 17:10:55 +01:00
parent 35442efb75
commit 747aa9f8ca
10 changed files with 144 additions and 4 deletions

View file

@ -24,7 +24,7 @@ from synapse.state import StateHandler, StateResolutionHandler
from tests import unittest
from .utils import MockClock
from .utils import MockClock, default_config
_next_event_id = 1000
@ -159,6 +159,7 @@ class StateTestCase(unittest.TestCase):
self.store = StateGroupStore()
hs = Mock(
spec_set=[
"config",
"get_datastore",
"get_auth",
"get_state_handler",
@ -166,6 +167,7 @@ class StateTestCase(unittest.TestCase):
"get_state_resolution_handler",
]
)
hs.config = default_config("tesths")
hs.get_datastore.return_value = self.store
hs.get_state_handler.return_value = None
hs.get_clock.return_value = MockClock()