Unbreak unit tests with Twisted 25.5.0 by add parsePOSTFormSubmission arg to FakeSite (#18577)
Co-authored-by: anoa's Codex Agent <codex@amorgan.xyz>
This commit is contained in:
@@ -226,8 +226,7 @@ class OptionsResourceTests(unittest.TestCase):
|
||||
isLeaf = True
|
||||
|
||||
def render(self, request: SynapseRequest) -> bytes:
|
||||
# Type-ignore: mypy thinks request.path is Optional[Any], not bytes.
|
||||
return request.path # type: ignore[return-value]
|
||||
return request.path
|
||||
|
||||
# Setup a resource with some children.
|
||||
self.resource = OptionsResource()
|
||||
|
||||
Reference in New Issue
Block a user