Browse Source

Tweak instance ordering for consistency

pull/13537/head
Sebastián Ramírez 8 months ago
parent
commit
7e0467d281
  1. 4
      tests/test_form_default.py

4
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

Loading…
Cancel
Save