diff --git a/tests/test_requests.py b/tests/test_requests.py index 8e34c6c1..248e8016 100644 --- a/tests/test_requests.py +++ b/tests/test_requests.py @@ -113,7 +113,6 @@ def test_request_form_urlencoded(): def app(scope): async def asgi(receive, send): request = Request(scope, receive) - body = b"" form = await request.form() response = JSONResponse({"form": form}) await response(receive, send) @@ -122,9 +121,6 @@ def test_request_form_urlencoded(): client = TestClient(app) - response = client.post("/") - assert response.json() == {"form": {}} - response = client.post("/", data={"abc": "123 @"}) assert response.json() == {"form": {"abc": "123 @"}}