mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 11:14:09 -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
|
@ -36,7 +36,7 @@ class FederationTestCase(unittest.TestCase):
|
|||
self.mock_config.signing_key = [MockKey()]
|
||||
|
||||
self.state_handler = NonCallableMock(spec_set=[
|
||||
"annotate_state_groups",
|
||||
"annotate_event_with_state",
|
||||
])
|
||||
|
||||
self.auth = NonCallableMock(spec_set=[
|
||||
|
@ -85,7 +85,7 @@ class FederationTestCase(unittest.TestCase):
|
|||
self.datastore.persist_event.return_value = defer.succeed(None)
|
||||
self.datastore.get_room.return_value = defer.succeed(True)
|
||||
|
||||
self.state_handler.annotate_state_groups.return_value = (
|
||||
self.state_handler.annotate_event_with_state.return_value = (
|
||||
defer.succeed(False)
|
||||
)
|
||||
|
||||
|
@ -95,7 +95,7 @@ class FederationTestCase(unittest.TestCase):
|
|||
ANY, False, is_new_state=False
|
||||
)
|
||||
|
||||
self.state_handler.annotate_state_groups.assert_called_once_with(
|
||||
self.state_handler.annotate_event_with_state.assert_called_once_with(
|
||||
ANY,
|
||||
old_state=None,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue