diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2021-05-20 18:39:44 +0100 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2021-05-20 18:39:44 +0100 |
commit | 7d32fdd2a443ee01679cf10cbbe69ba0d64e6fd4 (patch) | |
tree | 51b4690c640919b31e5f3ad22e1b44d04622fdbe | |
parent | Add an Admin API that removes a room from both public and AS room lists (diff) | |
download | synapse-anoa/allow_admins_delist_as_rooms.tar.xz |
Remove now-irrelevant test github/anoa/allow_admins_delist_as_rooms anoa/allow_admins_delist_as_rooms
-rw-r--r-- | tests/handlers/test_directory.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/handlers/test_directory.py b/tests/handlers/test_directory.py index 049264d79a..0cc165c1c6 100644 --- a/tests/handlers/test_directory.py +++ b/tests/handlers/test_directory.py @@ -559,28 +559,6 @@ class TestAppserviceRoomDirectoryList(unittest.HomeserverTestCase): # Check that the room is no longer in the public room directory self.assertFalse(self._is_room_in_public_room_directory(self.room_id)) - def test_admin_remove_from_appservice_room_directory(self): - """Tests that a homeserver admin can remove a room from the appservice-specific room directory""" - # Check that the room is not currently in the public room directory - self.assertFalse(self._is_room_in_public_room_directory(self.room_id)) - - # Attempt to list the room as an appservice - self._set_visibility_of_appservice_room( - self.room_id, - visible=True, - ) - - # Check that the room is currently in the public room directory - self.assertTrue(self._is_room_in_public_room_directory(self.room_id)) - - # Attempt to remove the room as a homeserver admin - self._set_visibility_of_appservice_room( - self.room_id, visible=False, access_token=self.admin_tok - ) - - # Check that the room is no longer in the public room directory - self.assertFalse(self._is_room_in_public_room_directory(self.room_id)) - def _set_visibility_of_appservice_room( self, room_id: str, |