summary refs log tree commit diff
path: root/tests/server.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-16 15:45:40 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-16 15:45:40 +0100
commitec2cab331d9899534e303a4c2e58d9fce4b57813 (patch)
tree35c23ab6aee3cb884c4b90d2764f0a8011cc0a79 /tests/server.py
parentMerge commit '8388a7fb3' into anoa/dinsic_release_1_31_0 (diff)
parentConvert internal pusher dicts to attrs classes. (#8940) (diff)
downloadsynapse-ec2cab331d9899534e303a4c2e58d9fce4b57813.tar.xz
Merge commit 'bd30cfe86' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'tests/server.py')
-rw-r--r--tests/server.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/server.py b/tests/server.py

index 4faf32e335..7d1ad362c4 100644 --- a/tests/server.py +++ b/tests/server.py
@@ -174,11 +174,11 @@ def make_request( custom_headers: Optional[ Iterable[Tuple[Union[bytes, str], Union[bytes, str]]] ] = None, -): +) -> FakeChannel: """ Make a web request using the given method, path and content, and render it - Returns the Request and the Channel underneath. + Returns the fake Channel object which records the response to the request. Args: site: The twisted Site to use to render the request @@ -202,7 +202,7 @@ def make_request( is finished. Returns: - Tuple[synapse.http.site.SynapseRequest, channel] + channel """ if not isinstance(method, bytes): method = method.encode("ascii") @@ -265,7 +265,7 @@ def make_request( if await_result: channel.await_result() - return req, channel + return channel @implementer(IReactorPluggableNameResolver)