summary refs log tree commit diff
path: root/tests/rest/client
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-30 16:26:54 +0100
committerOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-30 16:26:54 +0100
commitd49457b941806ebfdf38f5e11491183945402bf2 (patch)
tree43817fdb4205c5307f0c84475d780082af5ef510 /tests/rest/client
parentVarious fixes (diff)
downloadsynapse-d49457b941806ebfdf38f5e11491183945402bf2.tar.xz
Add stats tests
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
Diffstat (limited to 'tests/rest/client')
-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