Fix tests.
This commit is contained in:
parent
410a74b0f3
commit
e111a06e0a
|
@ -74,8 +74,7 @@ class FederationTestCase(unittest.TestCase):
|
||||||
yield self.handlers.federation_handler.on_receive(event, False, False)
|
yield self.handlers.federation_handler.on_receive(event, False, False)
|
||||||
|
|
||||||
self.datastore.persist_event.assert_called_once_with(event, False)
|
self.datastore.persist_event.assert_called_once_with(event, False)
|
||||||
self.notifier.on_new_room_event.assert_called_once_with(
|
self.notifier.on_new_room_event.assert_called_once_with(event)
|
||||||
event, store_id)
|
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def test_invite_join_target_this(self):
|
def test_invite_join_target_this(self):
|
||||||
|
|
|
@ -116,7 +116,7 @@ class RoomMemberHandlerTestCase(unittest.TestCase):
|
||||||
event
|
event
|
||||||
)
|
)
|
||||||
self.notifier.on_new_room_event.assert_called_once_with(
|
self.notifier.on_new_room_event.assert_called_once_with(
|
||||||
event, store_id)
|
event, extra_users=[self.hs.parse_userid(target_user_id)])
|
||||||
|
|
||||||
self.assertFalse(self.datastore.get_room.called)
|
self.assertFalse(self.datastore.get_room.called)
|
||||||
self.assertFalse(self.datastore.store_room.called)
|
self.assertFalse(self.datastore.store_room.called)
|
||||||
|
@ -175,7 +175,7 @@ class RoomMemberHandlerTestCase(unittest.TestCase):
|
||||||
event
|
event
|
||||||
)
|
)
|
||||||
self.notifier.on_new_room_event.assert_called_once_with(
|
self.notifier.on_new_room_event.assert_called_once_with(
|
||||||
event, store_id)
|
event, extra_users=[user])
|
||||||
|
|
||||||
join_signal_observer.assert_called_with(
|
join_signal_observer.assert_called_with(
|
||||||
user=user, room_id=room_id)
|
user=user, room_id=room_id)
|
||||||
|
|
Loading…
Reference in New Issue