diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-08-10 12:29:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-10 12:29:47 +0100 |
commit | fcbab08cbd46d28976411b1d014a4efb76c8b7a4 (patch) | |
tree | 4368a0afbd31457090fc6639f719f63b6b593c4c /tests/storage/test_redaction.py | |
parent | Implement new experimental push rules (#7997) (diff) | |
download | synapse-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.py | 4 |
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( |