diff options
author | Erik Johnston <erik@matrix.org> | 2016-02-03 13:53:59 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-02-03 13:53:59 +0000 |
commit | 430e49605064b49cffa209dbd0165ab531b14a3b (patch) | |
tree | c571869d5eb802ff526a5dfca6e9f3b649c2f804 /tests | |
parent | Add macaroon inspection script (diff) | |
parent | Simplify get_rooms (diff) | |
download | synapse-430e49605064b49cffa209dbd0165ab531b14a3b.tar.xz |
Merge pull request #552 from matrix-org/erikj/public_room_fix
Change the way we do public room list fetching
Diffstat (limited to 'tests')
-rw-r--r-- | tests/storage/test_room.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/storage/test_room.py b/tests/storage/test_room.py index 7fdbfc60f1..0baaf3df21 100644 --- a/tests/storage/test_room.py +++ b/tests/storage/test_room.py @@ -51,32 +51,6 @@ class RoomStoreTestCase(unittest.TestCase): (yield self.store.get_room(self.room.to_string())) ) - @defer.inlineCallbacks - def test_get_rooms(self): - # get_rooms does an INNER JOIN on the room_aliases table :( - - rooms = yield self.store.get_rooms(is_public=True) - # Should be empty before we add the alias - self.assertEquals([], rooms) - - yield self.store.create_room_alias_association( - room_alias=self.alias, - room_id=self.room.to_string(), - servers=["test"] - ) - - rooms = yield self.store.get_rooms(is_public=True) - - self.assertEquals(1, len(rooms)) - self.assertEquals({ - "name": None, - "room_id": self.room.to_string(), - "topic": None, - "aliases": [self.alias.to_string()], - "world_readable": False, - "guest_can_join": False, - }, rooms[0]) - class RoomEventsStoreTestCase(unittest.TestCase): |