From f6d8df7b3aa1796db31197a89a3bea05ed2991ed Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 13 Jul 2018 14:33:56 +0100 Subject: [PATCH] Black formatting --- tests/test_request.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_request.py b/tests/test_request.py index 3c848023..c7247627 100644 --- a/tests/test_request.py +++ b/tests/test_request.py @@ -11,6 +11,7 @@ def test_request_url(): data = {"method": request.method, "url": request.url} response = JSONResponse(data) await response(receive, send) + return asgi client = TestClient(app) @@ -223,12 +224,13 @@ def test_request_disconnect(): async def asgi(receive, send): request = Request(scope, receive) await request.body() + return asgi async def receiver(): - return {'type': 'http.disconnect'} + return {"type": "http.disconnect"} - scope = {'method': 'POST', 'path': '/'} + scope = {"method": "POST", "path": "/"} asgi_callable = app(scope) loop = asyncio.get_event_loop() with pytest.raises(ClientDisconnect):