Skip to content

Commit 8f4abe0

Browse files
Linting
1 parent 73d5fca commit 8f4abe0

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

tests/dispatch/test_http2.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@
33
import pytest
44

55
from httpcore import Client, Response
6+
67
from .utils import MockHTTP2Backend
78

89

910
def app(request):
10-
content = json.dumps({
11-
"method": request.method,
12-
"path": request.url.path,
13-
"body": request.content.decode(),
14-
}).encode()
15-
headers = {'Content-Length': str(len(content))}
11+
content = json.dumps(
12+
{
13+
"method": request.method,
14+
"path": request.url.path,
15+
"body": request.content.decode(),
16+
}
17+
).encode()
18+
headers = {"Content-Length": str(len(content))}
1619
return Response(200, headers=headers, content=content)
1720

1821

tests/dispatch/utils.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@
55
import h2.connection
66
import h2.events
77

8-
from httpcore import AsyncioBackend, BaseReader, BaseWriter, Protocol, Request, TimeoutConfig
8+
from httpcore import (
9+
AsyncioBackend,
10+
BaseReader,
11+
BaseWriter,
12+
Protocol,
13+
Request,
14+
TimeoutConfig,
15+
)
916

1017

1118
class MockHTTP2Backend(AsyncioBackend):

0 commit comments

Comments
 (0)