diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-07-24 17:29:17 +0200 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2019-07-24 17:29:17 +0200 |
commit | 0bb375c124e8120f6c3b63382aa86c50f3757df2 (patch) | |
tree | 7aedc626d8654e66cc8debadb1197eef1b4fad55 | |
parent | Implement restrictions on new events (diff) | |
download | synapse-0bb375c124e8120f6c3b63382aa86c50f3757df2.tar.xz |
Turns out the default preset is public_chat
-rw-r--r-- | tests/rest/client/test_room_access_rules.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/rest/client/test_room_access_rules.py b/tests/rest/client/test_room_access_rules.py index 83da1238ba..96f7ac94d3 100644 --- a/tests/rest/client/test_room_access_rules.py +++ b/tests/rest/client/test_room_access_rules.py @@ -484,16 +484,14 @@ class RoomAccessTestCase(unittest.HomeserverTestCase): ) def create_room( - self, direct=False, rule=None, preset=None, initial_state=None, - expected_code=200, + self, direct=False, rule=None, preset=RoomCreationPreset.TRUSTED_PRIVATE_CHAT, + initial_state=None, expected_code=200, ): content = { "is_direct": direct, + "preset": preset, } - if preset: - content["preset"] = preset - if rule: content["initial_state"] = [{ "type": ACCESS_RULES_TYPE, |