0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 16:13:50 +01:00
This commit is contained in:
Erik Johnston 2014-11-04 17:13:21 +00:00
parent dfb3d21a6d
commit 4a5e95511e

View file

@ -171,7 +171,6 @@ class RoomMemberHandlerTestCase(unittest.TestCase):
self.datastore.get_joined_hosts_for_room.side_effect = get_joined
store_id = "store_id_fooo"
self.datastore.persist_event.return_value = defer.succeed(store_id)
self.datastore.get_room.return_value = defer.succeed(1) # Not None.
@ -203,10 +202,12 @@ class RoomMemberHandlerTestCase(unittest.TestCase):
event
)
self.notifier.on_new_room_event.assert_called_once_with(
event, extra_users=[user])
event, extra_users=[user]
)
join_signal_observer.assert_called_with(
user=user, room_id=room_id)
user=user, room_id=room_id
)
class RoomCreationTest(unittest.TestCase):
@ -217,7 +218,6 @@ class RoomCreationTest(unittest.TestCase):
self.mock_config = NonCallableMock()
self.mock_config.signing_key = [MockKey()]
hs = HomeServer(
self.hostname,
db_pool=None,