mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 16:34:47 -04:00
Make make_request
actually render the request
remove the stubbing out of `request.process`, so that `requestReceived` also renders the request via the appropriate resource. Replace render() with a stub for now.
This commit is contained in:
parent
1f41422c98
commit
129ae841e5
9 changed files with 57 additions and 68 deletions
|
@ -68,15 +68,15 @@ class MediaRepoShardTestCase(BaseMultiWorkerStreamTestCase):
|
|||
the media which the caller should respond to.
|
||||
"""
|
||||
resource = hs.get_media_repository_resource().children[b"download"]
|
||||
request, channel = make_request(
|
||||
_, channel = make_request(
|
||||
self.reactor,
|
||||
FakeSite(resource),
|
||||
"GET",
|
||||
"/{}/{}".format(target, media_id),
|
||||
shorthand=False,
|
||||
access_token=self.access_token,
|
||||
await_result=False,
|
||||
)
|
||||
request.render(resource)
|
||||
self.pump()
|
||||
|
||||
clients = self.reactor.tcpClients
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue