diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-05-22 08:56:52 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-05-22 12:00:47 +0100 |
commit | a5e2941aad9acdd5033709807bb6ddd40e4435eb (patch) | |
tree | 7cce87b9e5550e8d041030a518060e0f2f212614 /tests/utils.py | |
parent | Merge pull request #3236 from matrix-org/rav/consent_notice (diff) | |
download | synapse-a5e2941aad9acdd5033709807bb6ddd40e4435eb.tar.xz |
Reject attempts to send event before privacy consent is given
Returns an M_CONSENT_NOT_GIVEN error (cf https://github.com/matrix-org/matrix-doc/issues/1252) if consent is not yet given.
Diffstat (limited to '')
-rw-r--r-- | tests/utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py index 9626e6fd78..262c4a5714 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -64,6 +64,7 @@ def setup_test_homeserver(name="test", datastore=None, config=None, **kargs): config.filter_timeline_limit = 5000 config.user_directory_search_all_users = False config.user_consent_server_notice_content = None + config.block_events_without_consent_error = None # disable user directory updates, because they get done in the # background, which upsets the test runner. |