s/by_token/by_access_token/g

We're about to have two kinds of token, access and refresh
This commit is contained in:
Daniel Wagner-Hall 2015-08-20 16:01:29 +01:00
parent 617501dd2a
commit 13a6517d89
10 changed files with 40 additions and 40 deletions

View file

@ -61,7 +61,7 @@ class RoomTypingTestCase(RestTestCase):
hs.get_handlers().federation_handler = Mock()
def _get_user_by_token(token=None):
def _get_user_by_access_token(token=None):
return {
"user": UserID.from_string(self.auth_user_id),
"admin": False,
@ -69,7 +69,7 @@ class RoomTypingTestCase(RestTestCase):
"token_id": 1,
}
hs.get_v1auth().get_user_by_token = _get_user_by_token
hs.get_v1auth().get_user_by_access_token = _get_user_by_access_token
def _insert_client_ip(*args, **kwargs):
return defer.succeed(None)