summary refs log tree commit diff
path: root/tests/storage/test_redaction.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-08-10 12:29:47 +0100
committerGitHub <noreply@github.com>2020-08-10 12:29:47 +0100
commitfcbab08cbd46d28976411b1d014a4efb76c8b7a4 (patch)
tree4368a0afbd31457090fc6639f719f63b6b593c4c /tests/storage/test_redaction.py
parentImplement new experimental push rules (#7997) (diff)
downloadsynapse-fcbab08cbd46d28976411b1d014a4efb76c8b7a4.tar.xz
Add an assertion on prev_events in create_new_client_event (#8041)
I think this would have caught all the cases in
https://github.com/matrix-org/synapse/issues/7642 - and I think a 500 makes
more sense here than a 403
Diffstat (limited to 'tests/storage/test_redaction.py')
-rw-r--r--tests/storage/test_redaction.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/storage/test_redaction.py b/tests/storage/test_redaction.py
index 41511d479f..1ea35d60c1 100644
--- a/tests/storage/test_redaction.py
+++ b/tests/storage/test_redaction.py
@@ -251,6 +251,10 @@ class RedactionTestCase(unittest.HomeserverTestCase):
             def room_id(self):
                 return self._base_builder.room_id
 
+            @property
+            def type(self):
+                return self._base_builder.type
+
         event_1, context_1 = self.get_success(
             self.event_creation_handler.create_new_client_event(
                 EventIdManglingBuilder(