mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 16:04:50 -04:00
[pyupgrade] tests/
(#10347)
This commit is contained in:
parent
879d8c1ee1
commit
89cfc3dd98
20 changed files with 45 additions and 58 deletions
|
@ -66,7 +66,7 @@ class DeleteGroupTestCase(unittest.HomeserverTestCase):
|
|||
# Create a new group
|
||||
channel = self.make_request(
|
||||
"POST",
|
||||
"/create_group".encode("ascii"),
|
||||
b"/create_group",
|
||||
access_token=self.admin_user_tok,
|
||||
content={"localpart": "test"},
|
||||
)
|
||||
|
@ -129,9 +129,7 @@ class DeleteGroupTestCase(unittest.HomeserverTestCase):
|
|||
|
||||
def _get_groups_user_is_in(self, access_token):
|
||||
"""Returns the list of groups the user is in (given their access token)"""
|
||||
channel = self.make_request(
|
||||
"GET", "/joined_groups".encode("ascii"), access_token=access_token
|
||||
)
|
||||
channel = self.make_request("GET", b"/joined_groups", access_token=access_token)
|
||||
|
||||
self.assertEqual(200, int(channel.result["code"]), msg=channel.result["body"])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue