summary refs log tree commit diff
path: root/tests/test_state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-08-09 14:33:49 +0100
committerErik Johnston <erik@matrix.org>2018-08-09 14:58:49 +0100
commit3e19beb941f3f797262b051d47227018898bb36f (patch)
tree95b6f79073e75c594be032dc86dbb52791ba6f08 /tests/test_state.py
parentAdd fast path in state res for zero prev events (diff)
downloadsynapse-3e19beb941f3f797262b051d47227018898bb36f.tar.xz
Fix tests
Diffstat (limited to 'tests/test_state.py')
-rw-r--r--tests/test_state.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_state.py b/tests/test_state.py
index 429a18cbf7..770e94437a 100644
--- a/tests/test_state.py
+++ b/tests/test_state.py
@@ -18,7 +18,7 @@ from mock import Mock
 from twisted.internet import defer
 
 from synapse.api.auth import Auth
-from synapse.api.constants import EventTypes, Membership
+from synapse.api.constants import EventTypes, Membership, RoomVersions
 from synapse.events import FrozenEvent
 from synapse.state import StateHandler, StateResolutionHandler
 
@@ -108,6 +108,9 @@ class StateGroupStore(object):
     def register_event_id_state_group(self, event_id, state_group):
         self._event_to_state_group[event_id] = state_group
 
+    def get_room_version(self, room_id):
+        return RoomVersions.V1
+
 
 class DictObj(dict):
     def __init__(self, **kwargs):
@@ -167,6 +170,7 @@ class StateTestCase(unittest.TestCase):
                 "START": DictObj(
                     type=EventTypes.Create,
                     state_key="",
+                    content={},
                     depth=1,
                 ),
                 "A": DictObj(