Skip to content
Snippets Groups Projects
Commit 53d0f69d authored by Paul "LeoNerd" Evans's avatar Paul "LeoNerd" Evans
Browse files

Also test avatar_url profile field

parent 6081f494
No related branches found
No related tags found
No related merge requests found
......@@ -76,3 +76,17 @@ class ProfileStoreTestCase(unittest.TestCase):
name = yield self.store.get_profile_displayname(self.u_frank.localpart)
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)
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