MatrixSynapse/tests/push
David Robertson 510d4b06e7
Handle malformed values of `notification.room` in power level events (#14942)
* Better test for bad values in power levels events

The previous test only checked that Synapse didn't raise an exception,
but didn't check that we had correctly interpreted the value of the
dodgy power level.

It also conflated two things: bad room notification levels, and bad user
levels. There _is_ logic for converting the latter to integers, but we
should test it separately.

* Check we ignore types that don't convert to int

* Handle `None` values in `notifications.room`

* Changelog

* Also test that bad values are rejected by event auth

* Docstring

* linter scripttttttttt
2023-01-30 21:29:30 +00:00
..
__init__.py
test_bulk_push_rule_evaluator.py Handle malformed values of `notification.room` in power level events (#14942) 2023-01-30 21:29:30 +00:00
test_email.py Fix-up type hints for tests.push module. (#14816) 2023-01-11 07:35:40 -05:00
test_http.py Fix-up type hints for tests.push module. (#14816) 2023-01-11 07:35:40 -05:00
test_presentable_names.py Fix-up type hints for tests.push module. (#14816) 2023-01-11 07:35:40 -05:00
test_push_rule_evaluator.py Implement MSC3952: Intentional mentions (#14823) 2023-01-27 10:16:21 -05:00