Tweak test case

This commit is contained in:
Tom Christie 2018-11-16 13:52:05 +00:00
parent de71b85948
commit 98fa5598de
1 changed files with 0 additions and 4 deletions

View File

@ -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 @"}}