summary refs log tree commit diff
path: root/tests/storage/test_redaction.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-11-10 15:21:41 +0000
committerErik Johnston <erik@matrix.org>2014-11-10 15:21:41 +0000
commitc174d19d1e107c31fe5d2d2b919bbd49a5b86e56 (patch)
tree77918f637b4793abeedc7109957a2a744089ad3c /tests/storage/test_redaction.py
parentFix regression where we did not return redacted events. (diff)
downloadsynapse-c174d19d1e107c31fe5d2d2b919bbd49a5b86e56.tar.xz
Fix redaction storage test
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 fb175a5c4c..adfe64a980 100644
--- a/tests/storage/test_redaction.py
+++ b/tests/storage/test_redaction.py
@@ -71,6 +71,8 @@ class RedactionTestCase(unittest.TestCase):
 
         event.state_events = None
         event.hashes = {}
+        event.prev_state = []
+        event.auth_events = []
 
         # Have to create a join event using the eventfactory
         yield self.store.persist_event(
@@ -94,6 +96,7 @@ class RedactionTestCase(unittest.TestCase):
 
         event.state_events = None
         event.hashes = {}
+        event.auth_events = []
 
         yield self.store.persist_event(
             event
@@ -115,6 +118,7 @@ class RedactionTestCase(unittest.TestCase):
 
         event.state_events = None
         event.hashes = {}
+        event.auth_events = []
 
         yield self.store.persist_event(
             event