Fix tests

This commit is contained in:
David Baker 2015-03-24 18:56:51 +00:00
parent 438a21c87b
commit ce2766d19c
5 changed files with 14 additions and 14 deletions

View file

@ -55,7 +55,7 @@ class ProfileTestCase(unittest.TestCase):
def _get_user_by_req(request=None):
return (UserID.from_string(myid), "")
hs.get_auth().get_user_by_req = _get_user_by_req
hs.get_v1auth().get_user_by_req = _get_user_by_req
hs.get_handlers().profile_handler = self.mock_handler