summary refs log tree commit diff
path: root/tests/events/test_utils.py
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2023-02-03 20:03:23 +0000
committerGitHub <noreply@github.com>2023-02-03 20:03:23 +0000
commit6e6edea6c15dc1a15f44d9e92d334e3ce0f827dd (patch)
tree5af175c1fb876db61855826d329d4f4434e32452 /tests/events/test_utils.py
parentImplement MSC3958: suppress notifications from edits (#14960) (diff)
downloadsynapse-6e6edea6c15dc1a15f44d9e92d334e3ce0f827dd.tar.xz
Properly typecheck tests.api (#14983)
Diffstat (limited to 'tests/events/test_utils.py')
-rw-r--r--tests/events/test_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/events/test_utils.py b/tests/events/test_utils.py
index ff7b349d75..4174a237ec 100644
--- a/tests/events/test_utils.py
+++ b/tests/events/test_utils.py
@@ -35,6 +35,8 @@ def MockEvent(**kwargs: Any) -> EventBase:
         kwargs["event_id"] = "fake_event_id"
     if "type" not in kwargs:
         kwargs["type"] = "fake_type"
+    if "content" not in kwargs:
+        kwargs["content"] = {}
     return make_event_from_dict(kwargs)