mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 07:53:47 +01:00
Fix presencelike test
This commit is contained in:
parent
416ab4ebf0
commit
24e2da4557
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,7 @@ from twisted.internet import defer
|
||||||
|
|
||||||
from mock import Mock, call, ANY
|
from mock import Mock, call, ANY
|
||||||
|
|
||||||
from ..utils import MockClock
|
from ..utils import MockClock, MockKey
|
||||||
|
|
||||||
from synapse.server import HomeServer
|
from synapse.server import HomeServer
|
||||||
from synapse.api.constants import PresenceState
|
from synapse.api.constants import PresenceState
|
||||||
|
@ -57,6 +57,9 @@ class PresenceAndProfileHandlers(object):
|
||||||
class PresenceProfilelikeDataTestCase(unittest.TestCase):
|
class PresenceProfilelikeDataTestCase(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
self.mock_config = Mock()
|
||||||
|
self.mock_config.signing_key = [MockKey()]
|
||||||
|
|
||||||
hs = HomeServer("test",
|
hs = HomeServer("test",
|
||||||
clock=MockClock(),
|
clock=MockClock(),
|
||||||
db_pool=None,
|
db_pool=None,
|
||||||
|
@ -72,6 +75,7 @@ class PresenceProfilelikeDataTestCase(unittest.TestCase):
|
||||||
resource_for_federation=Mock(),
|
resource_for_federation=Mock(),
|
||||||
http_client=None,
|
http_client=None,
|
||||||
replication_layer=MockReplication(),
|
replication_layer=MockReplication(),
|
||||||
|
config=self.mock_config,
|
||||||
)
|
)
|
||||||
hs.handlers = PresenceAndProfileHandlers(hs)
|
hs.handlers = PresenceAndProfileHandlers(hs)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue