From 7e0467d281ea85347fe771a9518dc998e6ab2782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Tue, 2 Dec 2025 05:33:43 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Tweak=20instance=20ordering=20for?= =?UTF-8?q?=20consistency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_form_default.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_form_default.py b/tests/test_form_default.py index b2d9177fc..2a12049d1 100644 --- a/tests/test_form_default.py +++ b/tests/test_form_default.py @@ -5,7 +5,6 @@ from starlette.testclient import TestClient from typing_extensions import Annotated app = FastAPI() -client = TestClient(app) @app.post("/urlencoded") @@ -21,6 +20,9 @@ async def post_multi_part( return {"file": file, "age": age} +client = TestClient(app) + + def test_form_default_url_encoded(): response = client.post("/urlencoded", data={"age": ""}) assert response.status_code == 200