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:
Andrew Morgan
2025-06-24 11:52:06 +01:00
committed by GitHub
parent 3cabaa84ca
commit 6791e6e250
10 changed files with 107 additions and 75 deletions

View File

@@ -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()