From 98fa5598de639cb37690751b78316a323758b6db Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 16 Nov 2018 13:52:05 +0000 Subject: [PATCH] Tweak test case --- tests/test_requests.py | 4 ---- 1 file changed, 4 deletions(-) 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 @"}}