summary refs log tree commit diff
path: root/synapse/appservice
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-12-03 20:01:10 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2021-12-03 20:03:09 +0000
commit13b25cf51e41e30104c628032284b045a052bcc0 (patch)
treeddaaf6b4b7a58fe59e4ac14b33750ba0fa9c8e8f /synapse/appservice
parentRefactor and generalise the sending of arbitrary fields over AS transactions (diff)
downloadsynapse-13b25cf51e41e30104c628032284b045a052bcc0.tar.xz
Fix tests to mock _TransactionController.send of ApplicationServiceScheduler.enqueue*
With enqueue_for_appservice being called per-event per-appservice, it's
not a great target for mocking. So we use _TransactionController.send
instead, to track things that are actually sent out to AS's.

This also has the benefit of testing a wider bit of the AS txn pipeline
Diffstat (limited to 'synapse/appservice')
-rw-r--r--synapse/appservice/scheduler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/appservice/scheduler.py b/synapse/appservice/scheduler.py
index 305e751d46..31b297c7a1 100644
--- a/synapse/appservice/scheduler.py
+++ b/synapse/appservice/scheduler.py
@@ -207,6 +207,7 @@ class _TransactionController:
         """
         Create a transaction with the given data and send to the provided
         application service.
+
         Args:
             service: The application service to send the transaction to.
             events: The persistent events to include in the transaction.