mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-06 21:55:00 -04:00
Replace hs.parse_roomalias with RoomAlias.from_string
This commit is contained in:
parent
1c06c48ce2
commit
ada711504e
8 changed files with 18 additions and 26 deletions
|
@ -19,7 +19,7 @@ from twisted.internet import defer
|
|||
|
||||
from synapse.server import HomeServer
|
||||
from synapse.storage.directory import DirectoryStore
|
||||
from synapse.types import RoomID
|
||||
from synapse.types import RoomID, RoomAlias
|
||||
|
||||
from tests.utils import SQLiteMemoryDbPool
|
||||
|
||||
|
@ -39,7 +39,7 @@ class DirectoryStoreTestCase(unittest.TestCase):
|
|||
self.store = DirectoryStore(hs)
|
||||
|
||||
self.room = RoomID.from_string("!abcde:test")
|
||||
self.alias = hs.parse_roomalias("#my-room:test")
|
||||
self.alias = RoomAlias.from_string("#my-room:test")
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def test_room_to_alias(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue