mirror of https://github.com/encode/starlette.git
Tweak test case
This commit is contained in:
parent
de71b85948
commit
98fa5598de
|
@ -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 @"}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue