forked-synapse/tests/rest/client
Richard van der Hoff c2e1a2110f
Fix limit logic for EventsStream (#7358)
* Factor out functions for injecting events into database

I want to add some more flexibility to the tools for injecting events into the
database, and I don't want to clutter up HomeserverTestCase with them, so let's
factor them out to a new file.

* Rework TestReplicationDataHandler

This wasn't very easy to work with: the mock wrapping was largely superfluous,
and it's useful to be able to inspect the received rows, and clear out the
received list.

* Fix AssertionErrors being thrown by EventsStream

Part of the problem was that there was an off-by-one error in the assertion,
but also the limit logic was too simple. Fix it all up and add some tests.
2020-04-29 12:30:36 +01:00
..
v1 Fix limit logic for EventsStream (#7358) 2020-04-29 12:30:36 +01:00
v2_alpha Revert "Revert "Merge pull request #7315 from matrix-org/babolivier/request_token"" 2020-04-23 11:23:53 +02:00
__init__.py copyrights 2016-01-07 04:26:29 +00:00
test_consent.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
test_ephemeral_message.py Add ephemeral messages support (MSC2228) (#6409) 2019-12-03 19:19:45 +00:00
test_identity.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
test_power_levels.py Default PL100 to enable encryption in a room (#7230) 2020-04-09 18:45:38 +01:00
test_redactions.py Fix comments 2019-09-11 13:54:50 +01:00
test_retention.py Don't restrict the tests to v1 rooms 2019-11-26 17:49:12 +00:00
test_transactions.py Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
third_party_rules.py Add plugin APIs for implementations of custom event rules. 2019-06-14 18:16:03 +01:00