forked from MirrorHub/synapse
PEP8
This commit is contained in:
parent
dfb3d21a6d
commit
4a5e95511e
|
@ -171,7 +171,6 @@ class RoomMemberHandlerTestCase(unittest.TestCase):
|
||||||
|
|
||||||
self.datastore.get_joined_hosts_for_room.side_effect = get_joined
|
self.datastore.get_joined_hosts_for_room.side_effect = get_joined
|
||||||
|
|
||||||
|
|
||||||
store_id = "store_id_fooo"
|
store_id = "store_id_fooo"
|
||||||
self.datastore.persist_event.return_value = defer.succeed(store_id)
|
self.datastore.persist_event.return_value = defer.succeed(store_id)
|
||||||
self.datastore.get_room.return_value = defer.succeed(1) # Not None.
|
self.datastore.get_room.return_value = defer.succeed(1) # Not None.
|
||||||
|
@ -203,10 +202,12 @@ 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, extra_users=[user])
|
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
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class RoomCreationTest(unittest.TestCase):
|
class RoomCreationTest(unittest.TestCase):
|
||||||
|
@ -217,7 +218,6 @@ class RoomCreationTest(unittest.TestCase):
|
||||||
self.mock_config = NonCallableMock()
|
self.mock_config = NonCallableMock()
|
||||||
self.mock_config.signing_key = [MockKey()]
|
self.mock_config.signing_key = [MockKey()]
|
||||||
|
|
||||||
|
|
||||||
hs = HomeServer(
|
hs = HomeServer(
|
||||||
self.hostname,
|
self.hostname,
|
||||||
db_pool=None,
|
db_pool=None,
|
||||||
|
|
Loading…
Reference in a new issue