diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-12-16 14:53:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 14:53:01 +0000 |
commit | 651e1ae534c3cbe65d41115d8fb91bca08b22009 (patch) | |
tree | b4ebf13a28cf251d91ba21640bf128a95234f064 /tests/rest/client/test_identity.py | |
parent | Fix generate_log_config script (#8952) (diff) | |
parent | lint (diff) | |
download | synapse-651e1ae534c3cbe65d41115d8fb91bca08b22009.tar.xz |
Merge pull request #8946 from matrix-org/rav/refactor_send_request
Remove `Request` return value from `make_request`
Diffstat (limited to 'tests/rest/client/test_identity.py')
-rw-r--r-- | tests/rest/client/test_identity.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/rest/client/test_identity.py b/tests/rest/client/test_identity.py index 259c6a1985..c0a9fc6925 100644 --- a/tests/rest/client/test_identity.py +++ b/tests/rest/client/test_identity.py @@ -43,9 +43,7 @@ class IdentityTestCase(unittest.HomeserverTestCase): self.register_user("kermit", "monkey") tok = self.login("kermit", "monkey") - request, channel = self.make_request( - b"POST", "/createRoom", b"{}", access_token=tok - ) + channel = self.make_request(b"POST", "/createRoom", b"{}", access_token=tok) self.assertEquals(channel.result["code"], b"200", channel.result) room_id = channel.json_body["room_id"] @@ -56,7 +54,7 @@ class IdentityTestCase(unittest.HomeserverTestCase): } request_data = json.dumps(params) request_url = ("/rooms/%s/invite" % (room_id)).encode("ascii") - request, channel = self.make_request( + channel = self.make_request( b"POST", request_url, request_data, access_token=tok ) self.assertEquals(channel.result["code"], b"403", channel.result) |