diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-01 19:57:17 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-01 19:57:17 +0100 |
commit | 3f5ebccbffda3a5599378b5000a8e78b47e7df7a (patch) | |
tree | 2ba8e9155574bef8a1b7a21e193c86f625d88f80 /tests/utils.py | |
parent | Add all the necessary checks to make banning work. (diff) | |
download | synapse-3f5ebccbffda3a5599378b5000a8e78b47e7df7a.tar.xz |
Fix the tests to include new db calls
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py index ea7d6893c6..2c146eab55 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -234,6 +234,20 @@ class MemoryDataStore(object): def get_room_events_max_id(self): return 0 # TODO (erikj) + def get_send_event_level(self, room_id): + return defer.succeed(0) + + def get_power_level(self, room_id, user_id): + return defer.succeed(0) + + def get_add_state_level(self, room_id): + return defer.succeed(0) + + def get_room_join_rule(self, room_id): + # TODO (erikj): This should be configurable + return defer.succeed("invite") + + def _format_call(args, kwargs): return ", ".join( ["%r" % (a) for a in args] + |