mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 17:04:10 -04:00
Rename annotate_state_groups to annotate_event_with_state
This commit is contained in:
parent
a8ceeec0fd
commit
3db2c0d43e
6 changed files with 22 additions and 22 deletions
|
@ -60,7 +60,7 @@ class RoomMemberHandlerTestCase(unittest.TestCase):
|
|||
]),
|
||||
auth=NonCallableMock(spec_set=["check", "add_auth_events"]),
|
||||
state_handler=NonCallableMock(spec_set=[
|
||||
"annotate_state_groups",
|
||||
"annotate_event_with_state",
|
||||
]),
|
||||
config=self.mock_config,
|
||||
)
|
||||
|
@ -251,7 +251,7 @@ class RoomCreationTest(unittest.TestCase):
|
|||
]),
|
||||
auth=NonCallableMock(spec_set=["check", "add_auth_events"]),
|
||||
state_handler=NonCallableMock(spec_set=[
|
||||
"annotate_state_groups",
|
||||
"annotate_event_with_state",
|
||||
]),
|
||||
ratelimiter=NonCallableMock(spec_set=[
|
||||
"send_message",
|
||||
|
@ -282,7 +282,7 @@ class RoomCreationTest(unittest.TestCase):
|
|||
def annotate(event):
|
||||
event.state_events = {}
|
||||
return defer.succeed(None)
|
||||
self.state_handler.annotate_state_groups.side_effect = annotate
|
||||
self.state_handler.annotate_event_with_state.side_effect = annotate
|
||||
|
||||
def hosts(room):
|
||||
return defer.succeed([])
|
||||
|
@ -311,6 +311,6 @@ class RoomCreationTest(unittest.TestCase):
|
|||
self.assertEquals(user_id, join_event.user_id)
|
||||
self.assertEquals(user_id, join_event.state_key)
|
||||
|
||||
self.assertTrue(self.state_handler.annotate_state_groups.called)
|
||||
self.assertTrue(self.state_handler.annotate_event_with_state.called)
|
||||
|
||||
self.assertTrue(self.federation.handle_new_event.called)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue