mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-02 05:26:02 -04:00
Fix tests
This commit is contained in:
parent
874fd43257
commit
316c00936f
3 changed files with 20 additions and 20 deletions
|
@ -61,14 +61,14 @@ class RoomTypingTestCase(RestTestCase):
|
|||
|
||||
hs.get_handlers().federation_handler = Mock()
|
||||
|
||||
def _get_user_by_access_token(token=None, allow_guest=False):
|
||||
def get_user_by_access_token(token=None, allow_guest=False):
|
||||
return {
|
||||
"user": UserID.from_string(self.auth_user_id),
|
||||
"token_id": 1,
|
||||
"is_guest": False,
|
||||
}
|
||||
|
||||
hs.get_v1auth()._get_user_by_access_token = _get_user_by_access_token
|
||||
hs.get_v1auth().get_user_by_access_token = get_user_by_access_token
|
||||
|
||||
def _insert_client_ip(*args, **kwargs):
|
||||
return defer.succeed(None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue