]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Black formatting 26/head
authorTom Christie <tom@tomchristie.com>
Fri, 13 Jul 2018 13:33:56 +0000 (14:33 +0100)
committerTom Christie <tom@tomchristie.com>
Fri, 13 Jul 2018 13:33:56 +0000 (14:33 +0100)
tests/test_request.py

index 3c8480234e46741883eaa4a0d61280b3eee91425..c7247627a41a46b39009b58aa12be0e1817eeb2b 100644 (file)
@@ -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):