Stop looking up "admin", which we never read

This commit is contained in:
Daniel Wagner-Hall 2015-08-25 16:29:39 +01:00
parent 57619d6058
commit a9d8bd95e7
9 changed files with 5 additions and 24 deletions

View file

@ -57,7 +57,6 @@ class RoomPermissionsTestCase(RestTestCase):
def _get_user_by_access_token(token=None):
return {
"user": UserID.from_string(self.auth_user_id),
"admin": False,
"token_id": 1,
}
hs.get_v1auth().get_user_by_access_token = _get_user_by_access_token
@ -443,7 +442,6 @@ class RoomsMemberListTestCase(RestTestCase):
def _get_user_by_access_token(token=None):
return {
"user": UserID.from_string(self.auth_user_id),
"admin": False,
"token_id": 1,
}
hs.get_v1auth().get_user_by_access_token = _get_user_by_access_token
@ -522,7 +520,6 @@ class RoomsCreateTestCase(RestTestCase):
def _get_user_by_access_token(token=None):
return {
"user": UserID.from_string(self.auth_user_id),
"admin": False,
"token_id": 1,
}
hs.get_v1auth().get_user_by_access_token = _get_user_by_access_token
@ -614,7 +611,6 @@ class RoomTopicTestCase(RestTestCase):
def _get_user_by_access_token(token=None):
return {
"user": UserID.from_string(self.auth_user_id),
"admin": False,
"token_id": 1,
}
@ -720,7 +716,6 @@ class RoomMemberStateTestCase(RestTestCase):
def _get_user_by_access_token(token=None):
return {
"user": UserID.from_string(self.auth_user_id),
"admin": False,
"token_id": 1,
}
hs.get_v1auth().get_user_by_access_token = _get_user_by_access_token
@ -846,7 +841,6 @@ class RoomMessagesTestCase(RestTestCase):
def _get_user_by_access_token(token=None):
return {
"user": UserID.from_string(self.auth_user_id),
"admin": False,
"token_id": 1,
}
hs.get_v1auth().get_user_by_access_token = _get_user_by_access_token
@ -942,7 +936,6 @@ class RoomInitialSyncTestCase(RestTestCase):
def _get_user_by_access_token(token=None):
return {
"user": UserID.from_string(self.auth_user_id),
"admin": False,
"token_id": 1,
}
hs.get_v1auth().get_user_by_access_token = _get_user_by_access_token