Fix up the various presence-related tests so that if they're not skipped, they still PASS

This commit is contained in:
Paul "LeoNerd" Evans 2014-08-27 18:29:45 +01:00
parent 407c86c013
commit d027e859cd
3 changed files with 26 additions and 12 deletions

View file

@ -102,6 +102,10 @@ class PresenceProfilelikeDataTestCase(unittest.TestCase):
])
self.datastore.get_presence_list = get_presence_list
def do_users_share_a_room(userlist):
return defer.succeed(False)
self.datastore.do_users_share_a_room = do_users_share_a_room
self.handlers = hs.get_handlers()
self.mock_update_client = Mock()