From 6372dff771413c2b9cd5648cbb6de01a679ef801 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Fri, 4 May 2018 01:58:45 +0100 Subject: [PATCH] remove create_profile from tests --- tests/handlers/test_profile.py | 2 -- tests/storage/test_profile.py | 8 -------- 2 files changed, 10 deletions(-) diff --git a/tests/handlers/test_profile.py b/tests/handlers/test_profile.py index 8646c4e434..b898f9dc27 100644 --- a/tests/handlers/test_profile.py +++ b/tests/handlers/test_profile.py @@ -68,8 +68,6 @@ class ProfileTestCase(unittest.TestCase): self.bob = UserID.from_string("@4567:test") self.alice = UserID.from_string("@alice:remote") - yield self.store.create_profile(self.frank.localpart) - self.handler = hs.get_profile_handler() @defer.inlineCallbacks diff --git a/tests/storage/test_profile.py b/tests/storage/test_profile.py index 1bfabc15ad..d173195787 100644 --- a/tests/storage/test_profile.py +++ b/tests/storage/test_profile.py @@ -35,10 +35,6 @@ class ProfileStoreTestCase(unittest.TestCase): @defer.inlineCallbacks def test_displayname(self): - yield self.store.create_profile( - self.u_frank.localpart - ) - yield self.store.set_profile_displayname( self.u_frank.localpart, "Frank", 1, ) @@ -50,10 +46,6 @@ class ProfileStoreTestCase(unittest.TestCase): @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", 1, )