summary refs log tree commit diff
path: root/tests/rest/client/utils.py
diff options
context:
space:
mode:
authorMo Balaa <thebalaa@users.noreply.github.com>2024-01-22 04:46:30 -0600
committerGitHub <noreply@github.com>2024-01-22 10:46:30 +0000
commitb99f6db0396629187b7c7e0e869e8ecc082154a5 (patch)
tree5dbd55692d832ef39c85d7267f79d259b8218193 /tests/rest/client/utils.py
parentBump actions/cache from 3 to 4 (#16832) (diff)
downloadsynapse-b99f6db0396629187b7c7e0e869e8ecc082154a5.tar.xz
Handle wildcard type filters properly (#14984)
Diffstat (limited to '')
-rw-r--r--tests/rest/client/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rest/client/utils.py b/tests/rest/client/utils.py
index 7bcbed246b..3bf3663e3a 100644
--- a/tests/rest/client/utils.py
+++ b/tests/rest/client/utils.py
@@ -364,6 +364,7 @@ class RestHelper:
         tok: Optional[str] = None,
         expect_code: int = HTTPStatus.OK,
         custom_headers: Optional[Iterable[Tuple[AnyStr, AnyStr]]] = None,
+        type: str = "m.room.message",
     ) -> JsonDict:
         if body is None:
             body = "body_text_here"
@@ -372,7 +373,7 @@ class RestHelper:
 
         return self.send_event(
             room_id,
-            "m.room.message",
+            type,
             content,
             txn_id,
             tok,