diff options
author | Erik Johnston <erik@matrix.org> | 2021-09-24 11:01:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 11:01:25 +0100 |
commit | 50022cff966a3991fbd8a1e5c98f490d9b335442 (patch) | |
tree | b3a86c3f0d2f8ef5ea352f5c671651e6169ab3b4 /tests/rest/client/test_consent.py | |
parent | Fix AuthBlocking check when requester is appservice (#10881) (diff) | |
download | synapse-50022cff966a3991fbd8a1e5c98f490d9b335442.tar.xz |
Add reactor to `SynapseRequest` and fix up types. (#10868)
Diffstat (limited to 'tests/rest/client/test_consent.py')
-rw-r--r-- | tests/rest/client/test_consent.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/rest/client/test_consent.py b/tests/rest/client/test_consent.py index 65c58ce70a..84d092ca82 100644 --- a/tests/rest/client/test_consent.py +++ b/tests/rest/client/test_consent.py @@ -61,7 +61,11 @@ class ConsentResourceTestCase(unittest.HomeserverTestCase): """You can observe the terms form without specifying a user""" resource = consent_resource.ConsentResource(self.hs) channel = make_request( - self.reactor, FakeSite(resource), "GET", "/consent?v=1", shorthand=False + self.reactor, + FakeSite(resource, self.reactor), + "GET", + "/consent?v=1", + shorthand=False, ) self.assertEqual(channel.code, 200) @@ -83,7 +87,7 @@ class ConsentResourceTestCase(unittest.HomeserverTestCase): ) channel = make_request( self.reactor, - FakeSite(resource), + FakeSite(resource, self.reactor), "GET", consent_uri, access_token=access_token, @@ -98,7 +102,7 @@ class ConsentResourceTestCase(unittest.HomeserverTestCase): # POST to the consent page, saying we've agreed channel = make_request( self.reactor, - FakeSite(resource), + FakeSite(resource, self.reactor), "POST", consent_uri + "&v=" + version, access_token=access_token, @@ -110,7 +114,7 @@ class ConsentResourceTestCase(unittest.HomeserverTestCase): # changed channel = make_request( self.reactor, - FakeSite(resource), + FakeSite(resource, self.reactor), "GET", consent_uri, access_token=access_token, |