Skip to content
Snippets Groups Projects
Commit 7e5f40e7 authored by dklimpel's avatar dklimpel
Browse files

fix tests

parent 50ea178c
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,7 @@ class ProfileTestCase(unittest.TestCase): ...@@ -96,7 +96,7 @@ class ProfileTestCase(unittest.TestCase):
self.hs.config.disable_set_displayname = True self.hs.config.disable_set_displayname = True
# Set first displayname is allowed, if displayname is null # Set first displayname is allowed, if displayname is null
self.store.set_profile_displayname(self.frank.localpart, "Frank") yield self.store.set_profile_displayname(self.frank.localpart, "Frank")
d = self.handler.set_displayname( d = self.handler.set_displayname(
self.frank, synapse.types.create_requester(self.frank), "Frank Jr." self.frank, synapse.types.create_requester(self.frank), "Frank Jr."
...@@ -167,7 +167,7 @@ class ProfileTestCase(unittest.TestCase): ...@@ -167,7 +167,7 @@ class ProfileTestCase(unittest.TestCase):
self.hs.config.disable_set_avatar_url = True self.hs.config.disable_set_avatar_url = True
# Set first time avatar is allowed, if displayname is null # Set first time avatar is allowed, if displayname is null
self.store.set_profile_avatar_url( yield self.store.set_profile_avatar_url(
self.frank.localpart, "http://my.server/me.png" self.frank.localpart, "http://my.server/me.png"
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment