summary refs log tree commit diff
path: root/tests/rest/client/v1/utils.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-09-02 13:04:54 +0100
committerGitHub <noreply@github.com>2019-09-02 13:04:54 +0100
commit745f2da4b8d90efbfe1cd813936816052d6c9a47 (patch)
tree20d8067f2e1b5d19b4232fdb2d97322e27c92ad1 /tests/rest/client/v1/utils.py
parentMerge pull request #5941 from matrix-org/rei/rss_inc7 (diff)
parentRenamve get_room_state (diff)
downloadsynapse-github/rei/rss_target.tar.xz
Merge pull request #5946 from matrix-org/rei/rss_inc8 github/rei/rss_target rei/rss_target
Separated Statistics [8/7ish EOF]
Diffstat (limited to 'tests/rest/client/v1/utils.py')
-rw-r--r--tests/rest/client/v1/utils.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/rest/client/v1/utils.py b/tests/rest/client/v1/utils.py

index 9915367144..cdded88b7f 100644 --- a/tests/rest/client/v1/utils.py +++ b/tests/rest/client/v1/utils.py
@@ -128,8 +128,12 @@ class RestHelper(object): return channel.json_body - def send_state(self, room_id, event_type, body, tok, expect_code=200): - path = "/_matrix/client/r0/rooms/%s/state/%s" % (room_id, event_type) + def send_state(self, room_id, event_type, body, tok, expect_code=200, state_key=""): + path = "/_matrix/client/r0/rooms/%s/state/%s/%s" % ( + room_id, + event_type, + state_key, + ) if tok: path = path + "?access_token=%s" % tok