From: Tom Christie Date: Fri, 13 Jul 2018 13:33:56 +0000 (+0100) Subject: Black formatting X-Git-Tag: 0.1.11^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F26%2Fhead;p=thirdparty%2Fstarlette.git Black formatting --- 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):