mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Also test avatar_url profile field
This commit is contained in:
parent
6081f4947e
commit
53d0f69dc3
@ -76,3 +76,17 @@ class ProfileStoreTestCase(unittest.TestCase):
|
|||||||
name = yield self.store.get_profile_displayname(self.u_frank.localpart)
|
name = yield self.store.get_profile_displayname(self.u_frank.localpart)
|
||||||
|
|
||||||
self.assertEquals("Frank", name)
|
self.assertEquals("Frank", name)
|
||||||
|
|
||||||
|
@defer.inlineCallbacks
|
||||||
|
def test_avatar_url(self):
|
||||||
|
yield self.store.create_profile(
|
||||||
|
self.u_frank.localpart
|
||||||
|
)
|
||||||
|
|
||||||
|
yield self.store.set_profile_avatar_url(
|
||||||
|
self.u_frank.localpart, "http://my.site/here"
|
||||||
|
)
|
||||||
|
|
||||||
|
name = yield self.store.get_profile_avatar_url(self.u_frank.localpart)
|
||||||
|
|
||||||
|
self.assertEquals("http://my.site/here", name)
|
||||||
|
Loading…
Reference in New Issue
Block a user