diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-08-27 13:34:28 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-08-27 14:32:19 +0100 |
commit | a03c7f27a8104d0e32642cb96faf24608dc2e27b (patch) | |
tree | 66e50f91396082e58643e32194fe0322735dcb92 /tests/utils.py | |
parent | Remove unused populate_previous_pdus (diff) | |
download | synapse-a03c7f27a8104d0e32642cb96faf24608dc2e27b.tar.xz |
Fill out prev_events before calling persist_event
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 4 |
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( |