diff --git a/src/klein/test/test_form.py b/src/klein/test/test_form.py index 6b2b0a0a..e28b7bc9 100644 --- a/src/klein/test/test_form.py +++ b/src/klein/test/test_form.py @@ -71,13 +71,22 @@ def procureASession(self, request: IRequest) -> Any: dangling=DanglingField(lambda x: x, "text"), ) def danglingParameter(self, dangling: str) -> None: - "..." + """ + Provided to test error reporting on handling of dangling fields. + + @see: L{DanglingField} + """ @requirer.require( router.route("/dangling-param", methods=["GET"]), form=Form.rendererFor(danglingParameter, action="/dangling-param"), ) def renderDanglingParameter(self, form: Form) -> Form: + """ + Provided to test error reporting on rendering of dangling fields. + + @see: L{DanglingField} + """ return form @requirer.require( @@ -354,7 +363,10 @@ def test_missingRequiredParameter(self) -> None: def test_noName(self) -> None: """ A handler for a Form with a Field that doesn't have a name will return - an error explaining the problem. + an error explaining the problem when either processed in a handler or + rendered in a form. + + @see: L{DanglingField}. """ mem = MemorySessionStore() session = self.successResultOf(