summary refs log tree commit diff
path: root/tests/events/test_utils.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Convert stringy power levels to integers on room upgrade (#12657)David Robertson2022-05-071-2/+39
|
* Use the proper serialization format when bundling aggregations. (#12090)Patrick Cloke2022-03-031-1/+4
| | | | This ensures that the `latest_event` field of the bundled aggregation for threads uses the same format as the other events in the response.
* Replace assertEquals and friends with non-deprecated versions. (#12092)Patrick Cloke2022-02-281-8/+8
|
* Strip "join_authorised_via_users_server" from join events which do not need ↵Patrick Cloke2021-09-301-3/+4
| | | | | | | it. (#10933) This fixes a "Event not signed by authorising server" error when transition room member from join -> join, e.g. when updating a display name or avatar URL for restricted rooms.
* Support MSC3375: room version 9. (#10747)Patrick Cloke2021-09-031-1/+45
|
* Support MSC3289: Room version 8 (#10449)Patrick Cloke2021-08-091-1/+1
| | | This adds support for MSC3289: room version 8. This is room version 7 + MSC3083.
* Restricted rooms (MSC3083) should not have their allow key redacted. (#10489)Patrick Cloke2021-07-281-0/+43
|
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Implement MSC2176: Updated redaction rules (#8984)Patrick Cloke2021-01-051-21/+164
| | | | An experimental room version ("org.matrix.msc2176") contains the new redaction rules for testing.
* Implement room version 6 (MSC2240). (#7506)Patrick Cloke2020-05-151-1/+1
|
* Remove special auth and redaction rules for aliases events in experimental ↵Patrick Cloke2020-03-091-2/+33
| | | | room ver. (#7037)
* Add a `make_event_from_dict` method (#6858)Richard van der Hoff2020-02-071-4/+5
| | | | | | | ... and use it in places where it's trivial to do so. This will make it easier to pass room versions into the FrozenEvent constructors.
* Factor out a `copy_power_levels_contents` methodRichard van der Hoff2020-01-291-2/+43
| | | | I'm going to need another copy (hah!) of this.
* Run Black. (#5482)Amber Brown2019-06-201-47/+47
|
* Fix a number of flake8 errorsRichard van der Hoff2018-10-241-2/+2
| | | | | | | | | | | | Broadly three things here: * disable W504 which seems a bit whacko * remove a bunch of `as e` expressions from exception handlers that don't use them * use `r""` for strings which include backslashes Also, we don't use pep8 any more, so we can get rid of the duplicate config there.
* Run black.black2018-08-101-98/+37
|
* run isortAmber Brown2018-07-091-2/+2
|
* Optimise state resolutionErik Johnston2017-01-171-1/+21
|
* Review commentsKegan Dougal2016-11-221-10/+2
|
* More testsKegan Dougal2016-11-221-1/+56
|
* Add remaining testsKegan Dougal2016-11-211-4/+70
|
* Start adding some testsKegan Dougal2016-11-211-3/+37
|
* Move event_fields filtering to serialize_eventKegan Dougal2016-11-211-0/+21
| | | | Also make it an inclusive not exclusive filter, as the spec demands.
* Fix flake8 warnings for testsMark Haines2016-02-191-0/+1
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Add some unit tests of prune_events()Paul "LeoNerd" Evans2015-10-161-0/+115