Skip to content

Commit f074f30

Browse files
committed
make format
1 parent c299573 commit f074f30

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/functional/event_handler/_pydantic/test_file_form_validation.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,15 @@ def test_form_parameter_validation():
5757

5858
@app.post("/contact")
5959
def contact_form(
60-
name: Annotated[str, Form(description="Contact name")],
61-
email: Annotated[str, Form(description="Contact email")]
60+
name: Annotated[str, Form(description="Contact name")], email: Annotated[str, Form(description="Contact email")]
6261
):
6362
return {"message": f"Hello {name}, we'll contact you at {email}"}
6463

6564
# Create form data request
6665
body = "name=John+Doe&email=john%40example.com"
6766

6867
event = make_request_event(
69-
method="POST",
70-
path="/contact",
71-
body=body,
72-
headers={"content-type": "application/x-www-form-urlencoded"}
68+
method="POST", path="/contact", body=body, headers={"content-type": "application/x-www-form-urlencoded"}
7369
)
7470

7571
response = app.resolve(event, {})

0 commit comments

Comments
 (0)