mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:56:06 -04:00
Factor out an _AsyncEventContextImpl (#6298)
The intention here is to make it clearer which fields we can expect to be populated when: notably, that the _event_type etc aren't used for the synchronous impl of EventContext.
This commit is contained in:
parent
fa7e52caf1
commit
c6516adbe0
4 changed files with 65 additions and 85 deletions
|
@ -59,7 +59,9 @@ class MessageAcceptTests(unittest.TestCase):
|
|||
)
|
||||
|
||||
self.handler = self.homeserver.get_handlers().federation_handler
|
||||
self.handler.do_auth = lambda *a, **b: succeed(True)
|
||||
self.handler.do_auth = lambda origin, event, context, auth_events: succeed(
|
||||
context
|
||||
)
|
||||
self.client = self.homeserver.get_federation_client()
|
||||
self.client._check_sigs_and_hash_and_fetch = lambda dest, pdus, **k: succeed(
|
||||
pdus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue