From 16f371717153b0fe8276dd61734525b66d85315f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Tue, 17 Mar 2026 23:16:31 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Auto=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_tutorial/test_path_params/test_tutorial006.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_tutorial/test_path_params/test_tutorial006.py b/tests/test_tutorial/test_path_params/test_tutorial006.py index 7bee367558..5a957323f9 100644 --- a/tests/test_tutorial/test_path_params/test_tutorial006.py +++ b/tests/test_tutorial/test_path_params/test_tutorial006.py @@ -3,10 +3,12 @@ from fastapi.testclient import TestClient app = FastAPI() + @app.get("/items/{item_id}") def read_item(item_id: int = Path(..., ge=1, le=1000)): return {"item_id": item_id} + client = TestClient(app) @@ -28,4 +30,4 @@ def test_item_id_above_range(): def test_invalid_type(): response = client.get("/items/abc") - assert response.status_code == 422 # type validation error \ No newline at end of file + assert response.status_code == 422 # type validation error