From ef4c2c8d275d906fb7e6262de0ca21c60a1f29ed Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 27 Jul 2025 10:00:32 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_validation_error_fields.py | 48 +++++++++------------------ 1 file changed, 16 insertions(+), 32 deletions(-) diff --git a/tests/test_validation_error_fields.py b/tests/test_validation_error_fields.py index d5a41dff4..da1fc3d10 100644 --- a/tests/test_validation_error_fields.py +++ b/tests/test_validation_error_fields.py @@ -17,38 +17,30 @@ def test_input_and_url_fields_with_pydanticv2(include_error_input, include_error ) @app.get("/get1/{path_param}") - def get1(path_param: int): - ... + def get1(path_param: int): ... @app.get("/get2/") - def get2(query_param: int): - ... + def get2(query_param: int): ... - class Body1(BaseModel): - ... + class Body1(BaseModel): ... - class Body2(BaseModel): - ... + class Body2(BaseModel): ... @app.post("/post1/") - def post1(body1: Body1, body2: Body2): - ... + def post1(body1: Body1, body2: Body2): ... router = APIRouter( include_error_input=include_error_input, include_error_url=include_error_url ) @router.get("/get3/{path_param}") - def get3(path_param: int): - ... + def get3(path_param: int): ... @router.get("/get4/") - def get4(query_param: int): - ... + def get4(query_param: int): ... @router.post("/post2/") - def post2(body1: Body1, body2: Body2): - ... + def post2(body1: Body1, body2: Body2): ... app.include_router(router) client = TestClient(app) @@ -121,38 +113,30 @@ def test_input_and_url_fields_with_pydanticv1(include_error_input, include_error ) @app.get("/get1/{path_param}") - def get1(path_param: int): - ... + def get1(path_param: int): ... @app.get("/get2/") - def get2(query_param: int): - ... + def get2(query_param: int): ... - class Body1(BaseModel): - ... + class Body1(BaseModel): ... - class Body2(BaseModel): - ... + class Body2(BaseModel): ... @app.post("/post1/") - def post1(body1: Body1, body2: Body2): - ... + def post1(body1: Body1, body2: Body2): ... router = APIRouter( include_error_input=include_error_input, include_error_url=include_error_url ) @router.get("/get3/{path_param}") - def get3(path_param: int): - ... + def get3(path_param: int): ... @router.get("/get4/") - def get4(query_param: int): - ... + def get4(query_param: int): ... @router.post("/post2/") - def post2(body1: Body1, body2: Body2): - ... + def post2(body1: Body1, body2: Body2): ... app.include_router(router) client = TestClient(app)