summary refs log tree commit diff
path: root/tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-12-01Modify the tests to work with the new flow; clean up tests github/anoa/e2e_as_to_device_dirty anoa/e2e_as_to_device_dirtyAndrew Morgan2-71/+84
This ended up ballooning much larger than intended :/ Part of the reason for the large amount of changes was the elimination of the _ServiceQueuer.enqueue_{event,ephemeral} methods and replacing them with ApplicationServiceScheduler.enqueue_for_appservice. That meant we had to change all of the tests that mock'd enqueue_{event,ephemeral} to instead look lower-level, at the calls to _TransactionController.send. Other than that, there was just the normal amount of adding checks that to_device_messages as an argument to enqueue_for_appservice is filled out correctly. The change to scheduler means that we don't have to keep adding another [] every time we check a call to _TransactionController.send.
2021-12-01fix type hint; make AppServiceTransaction instantiation a bit easierAndrew Morgan3-9/+7
2021-12-01generalise sending application service transactions and allow to-deviceAndrew Morgan5-42/+108
2021-11-24Add comment on why we don't NOT NULL to_device_stream_idAndrew Morgan1-0/+5
2021-11-24Add some FIXME commentsAndrew Morgan1-0/+3
2021-11-24rename set_type_stream_id_for_appservice -> set_appservice_stream_type_posAndrew Morgan4-13/+13
2021-11-22Fix existing unit tests github/anoa/e2e_as anoa/e2e_asAndrew Morgan1-8/+5
There is so much mocking going on here. I look forward to replacing these one day.
2021-11-19Simplify registration of appservices in testsAndrew Morgan1-64/+51