]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Linting
authorTom Christie <tom@tomchristie.com>
Tue, 14 May 2019 13:35:55 +0000 (14:35 +0100)
committerTom Christie <tom@tomchristie.com>
Tue, 14 May 2019 13:35:55 +0000 (14:35 +0100)
tests/dispatch/test_http2.py
tests/dispatch/utils.py

index 1c330777ed5ef3b7f48d55130f1d2e6eea9ba138..e19bb1cf811cb146844568a4b2032b067ce34359 100644 (file)
@@ -3,16 +3,19 @@ import json
 import pytest
 
 from httpcore import Client, Response
+
 from .utils import MockHTTP2Backend
 
 
 def app(request):
-    content = json.dumps({
-        "method": request.method,
-        "path": request.url.path,
-        "body": request.content.decode(),
-    }).encode()
-    headers = {'Content-Length': str(len(content))}
+    content = json.dumps(
+        {
+            "method": request.method,
+            "path": request.url.path,
+            "body": request.content.decode(),
+        }
+    ).encode()
+    headers = {"Content-Length": str(len(content))}
     return Response(200, headers=headers, content=content)
 
 
index c4df4b7c4072a133cf148fec5d6b05a294996b60..8214c9042b908d0d3a1cd31784374ab477d84e5d 100644 (file)
@@ -5,7 +5,14 @@ import h2.config
 import h2.connection
 import h2.events
 
-from httpcore import AsyncioBackend, BaseReader, BaseWriter, Protocol, Request, TimeoutConfig
+from httpcore import (
+    AsyncioBackend,
+    BaseReader,
+    BaseWriter,
+    Protocol,
+    Request,
+    TimeoutConfig,
+)
 
 
 class MockHTTP2Backend(AsyncioBackend):