summary refs log tree commit diff
path: root/tests/utils.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-08-27 13:34:28 +0100
committerMark Haines <mark.haines@matrix.org>2014-08-27 14:32:19 +0100
commita03c7f27a8104d0e32642cb96faf24608dc2e27b (patch)
tree66e50f91396082e58643e32194fe0322735dcb92 /tests/utils.py
parentRemove unused populate_previous_pdus (diff)
downloadsynapse-a03c7f27a8104d0e32642cb96faf24608dc2e27b.tar.xz
Fill out prev_events before calling persist_event
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py
index aa9608a1ed..6666b06931 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -127,7 +127,9 @@ class MemoryDataStore(object):
         self.current_state = {}
         self.events = []
 
-    Snapshot = namedtuple("Snapshot", "room_id user_id membership_state")
+    class Snapshot(namedtuple("Snapshot", "room_id user_id membership_state")):
+        def fill_out_prev_events(self, event):
+            pass
 
     def snapshot_room(self, room_id, user_id, state_type=None, state_key=None):
         return self.Snapshot(