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/test_terms_auth.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/test_terms_auth.py')
-rw-r--r-- | tests/test_terms_auth.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_terms_auth.py b/tests/test_terms_auth.py index 71580b454d..a743cdc3a9 100644 --- a/tests/test_terms_auth.py +++ b/tests/test_terms_auth.py @@ -53,7 +53,7 @@ class TermsTestCase(unittest.HomeserverTestCase): def test_ui_auth(self): # Do a UI auth request request_data = json.dumps({"username": "kermit", "password": "monkey"}) - request, channel = self.make_request(b"POST", self.url, request_data) + channel = self.make_request(b"POST", self.url, request_data) self.assertEquals(channel.result["code"], b"401", channel.result) @@ -96,7 +96,7 @@ class TermsTestCase(unittest.HomeserverTestCase): self.registration_handler.check_username = Mock(return_value=True) - request, channel = self.make_request(b"POST", self.url, request_data) + channel = self.make_request(b"POST", self.url, request_data) # We don't bother checking that the response is correct - we'll leave that to # other tests. We just want to make sure we're on the right path. @@ -113,7 +113,7 @@ class TermsTestCase(unittest.HomeserverTestCase): }, } ) - request, channel = self.make_request(b"POST", self.url, request_data) + channel = self.make_request(b"POST", self.url, request_data) # We're interested in getting a response that looks like a successful # registration, not so much that the details are exactly what we want. |