summary refs log tree commit diff
path: root/tests/rest/client
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-06-29 12:00:04 -0400
committerGitHub <noreply@github.com>2021-06-29 12:00:04 -0400
commitf55836929d3c64f3f8d883d8f3643a88b6c9cbca (patch)
treed819f59c143015da275191b3500e7da3eb3031b6 /tests/rest/client
parentFix `populate_stream_ordering2` background job (#10267) (diff)
downloadsynapse-f55836929d3c64f3f8d883d8f3643a88b6c9cbca.tar.xz
Do not recurse into non-spaces in the spaces summary. (#10256)
Previously m.child.room events in non-space rooms would be
treated as part of the room graph, but this is no longer
supported.
Diffstat (limited to 'tests/rest/client')
-rw-r--r--tests/rest/client/v1/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rest/client/v1/utils.py b/tests/rest/client/v1/utils.py

index ed55a640af..69798e95c3 100644 --- a/tests/rest/client/v1/utils.py +++ b/tests/rest/client/v1/utils.py
@@ -52,6 +52,7 @@ class RestHelper: room_version: str = None, tok: str = None, expect_code: int = 200, + extra_content: Optional[Dict] = None, ) -> str: """ Create a room. @@ -72,7 +73,7 @@ class RestHelper: temp_id = self.auth_user_id self.auth_user_id = room_creator path = "/_matrix/client/r0/createRoom" - content = {} + content = extra_content or {} if not is_public: content["visibility"] = "private" if room_version: