summary refs log tree commit diff
path: root/scripts-dev/mypy_synapse_plugin.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-11-16Remove redundant `HomeserverTestCase.render`Richard van der Hoff44-629/+0
2020-11-16Remove redundant calls to `render()`Richard van der Hoff13-106/+32
2020-11-16Make `make_request` actually render the requestRichard van der Hoff9-68/+57
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.
2020-11-16Fix the URL in the URL preview testsRichard van der Hoff1-19/+22
the preview resource is mointed at preview_url, not url_preview
2020-11-16Move `wait_until_result` into `FakeChannel` (#8758)Richard van der Hoff3-25/+24
FakeChannel has everything we need, and this more accurately models the real flow.
2020-11-16fixup testRichard van der Hoff1-0/+1
2020-11-16Generalise _locally_reject_invite (#8751)Andrew Morgan2-17/+20
`_locally_reject_invite` generates an out-of-band membership event which can be passed to clients, but not other homeservers. This is used when we fail to reject an invite over federation. If this happens, we instead just generate a leave event locally and send it down /sync, allowing clients to reject invites even if we can't reach the remote homeserver. A similar flow needs to be put in place for rescinding knocks. If we're unable to contact any remote server from the room we've tried to knock on, we'd still like to generate and store the leave event locally. Hence the need to reuse, and thus generalise, this method. Separated from #6739.
2020-11-16Rename `create_test_json_resource` to `create_test_resource` (#8759)Richard van der Hoff7-23/+16
The root resource isn't necessarily a JsonResource, so rename this method accordingly, and update a couple of test classes to use the method rather than directly manipulating self.resource.
2020-11-16