mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:56:06 -04:00
Merge rest servlets into the client json resource object
This commit is contained in:
parent
22f00a09dd
commit
7256def8e4
5 changed files with 18 additions and 28 deletions
|
@ -25,6 +25,8 @@ from ....utils import MockHttpResource, MockKey
|
|||
from synapse.api.errors import SynapseError, AuthError
|
||||
from synapse.server import HomeServer
|
||||
|
||||
from synapse.rest.client.v1 import profile
|
||||
|
||||
myid = "@1234ABCD:test"
|
||||
PATH_PREFIX = "/_matrix/client/api/v1"
|
||||
|
||||
|
@ -61,7 +63,7 @@ class ProfileTestCase(unittest.TestCase):
|
|||
|
||||
hs.get_handlers().profile_handler = self.mock_handler
|
||||
|
||||
hs.register_servlets()
|
||||
profile.register_servlets(hs, self.mock_resource)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def test_get_my_name(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue