synapse/tests/rest/client
Will Hunt 15382b1afa
Add third_party module callbacks to check if a user can delete a room and deactivate a user (#12028)
* Add check_can_deactivate_user

* Add check_can_shutdown_rooms

* Documentation

* callbacks, not functions

* Various suggested tweaks

* Add tests for test_check_can_shutdown_room and test_check_can_deactivate_user

* Update check_can_deactivate_user to not take a Requester

* Fix check_can_shutdown_room docs

* Renegade and use `by_admin` instead of `admin_user_id`

* fix lint

* Update docs/modules/third_party_rules_callbacks.md

Co-authored-by: Brendan Abolivier <babolivier@matrix.org>

* Update docs/modules/third_party_rules_callbacks.md

Co-authored-by: Brendan Abolivier <babolivier@matrix.org>

* Update docs/modules/third_party_rules_callbacks.md

Co-authored-by: Brendan Abolivier <babolivier@matrix.org>

* Update docs/modules/third_party_rules_callbacks.md

Co-authored-by: Brendan Abolivier <babolivier@matrix.org>

Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
2022-03-09 18:23:57 +00:00
..
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_account.py Add type hints to tests/rest/client (#12108) 2022-03-02 16:34:14 +00:00
test_auth.py Add type hints to tests/rest/client (#12066) 2022-02-23 08:33:19 -05:00
test_capabilities.py Add type hints to tests/rest/client (#12066) 2022-02-23 08:33:19 -05:00
test_consent.py Add type hints to tests/rest/client (#12072) 2022-02-24 13:56:38 -05:00
test_device_lists.py Add type hints to tests/rest/client (#12072) 2022-02-24 13:56:38 -05:00
test_directory.py Test room alias deletion (#11327) 2021-11-12 19:56:00 +00:00
test_ephemeral_message.py Add type hints to tests/rest/client (#12072) 2022-02-24 13:56:38 -05:00
test_events.py Add type hints to tests/rest/client (#12094) 2022-02-28 18:59:00 +00:00
test_filter.py Add type hints to tests/rest/client (#12108) 2022-03-02 16:34:14 +00:00
test_groups.py Add type hints to tests/rest/client (#12094) 2022-02-28 18:59:00 +00:00
test_identity.py Add type hints to tests/rest/client (#12072) 2022-02-24 13:56:38 -05:00
test_keys.py Add type hints to tests/rest/client (#12072) 2022-02-24 13:56:38 -05:00
test_login.py Replace assertEquals and friends with non-deprecated versions. (#12092) 2022-02-28 07:12:29 -05:00
test_password_policy.py Add type hints to tests/rest/client (#12072) 2022-02-24 13:56:38 -05:00
test_power_levels.py Add type hints to tests/rest/client (#12072) 2022-02-24 13:56:38 -05:00
test_presence.py Add type hints to tests/rest/client (#12072) 2022-02-24 13:56:38 -05:00
test_profile.py Add type hints to tests/rest/client (#12084) 2022-02-28 17:47:37 +00:00
test_push_rule_attrs.py Add type hints to tests/rest/client (#12084) 2022-02-28 17:47:37 +00:00
test_redactions.py Add type hints to tests/rest/client (#12084) 2022-02-28 17:47:37 +00:00
test_register.py Add type hints to tests/rest/client (#12094) 2022-02-28 18:59:00 +00:00
test_relations.py Invalidate caches when an event with a relation is redacted. (#12121) 2022-03-07 14:00:05 +00:00
test_report_event.py Add type hints to tests/rest/client (#12108) 2022-03-02 16:34:14 +00:00
test_retention.py Add type hints to tests/rest/client (#12084) 2022-02-28 17:47:37 +00:00
test_room_batch.py Add type hints to tests/rest/client (#12072) 2022-02-24 13:56:38 -05:00
test_rooms.py Add type hints to tests/rest/client (#12108) 2022-03-02 16:34:14 +00:00
test_sendtodevice.py Add type hints to tests/rest/client (#12084) 2022-02-28 17:47:37 +00:00
test_shadow_banned.py Add type hints to tests/rest/client (#12084) 2022-02-28 17:47:37 +00:00
test_shared_rooms.py Add type hints to tests/rest/client (#12084) 2022-02-28 17:47:37 +00:00
test_sync.py Replace assertEquals and friends with non-deprecated versions. (#12092) 2022-02-28 07:12:29 -05:00
test_third_party_rules.py Add third_party module callbacks to check if a user can delete a room and deactivate a user (#12028) 2022-03-09 18:23:57 +00:00
test_transactions.py Use mock from the stdlib. (#9772) 2021-04-09 13:44:38 -04:00
test_typing.py Remove unused mocks from test_typing (#12136) 2022-03-02 17:24:52 +00:00
test_upgrade_room.py Add type hints to tests/rest/client (#12084) 2022-02-28 17:47:37 +00:00
utils.py Add type hints to tests/rest/client (#12084) 2022-02-28 17:47:37 +00:00