Skip to content
Myr

Linting

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tom Christie · committed by Tom Christie · parent 73d5fca · Browse files · 2 files+17 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+17 added−7 removed

  • tests:+17 added−7 removed

2 files+17 added−7 removed

modified:tests/dispatch/test_http2.py+9 added-6 removed
1 unmodified line
23import pytest45from httpcore import Client, Response67from .utils import MockHTTP2Backend8910def 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))}19 return Response(200, headers=headers, content=content)202122def test_http2_get_request():
39 unmodified lines
modified:tests/dispatch/utils.py+8 added-1 removed
3 unmodified lines
4import h2.config5import h2.connection6import h2.events78from httpcore import AsyncioBackend, BaseReader, BaseWriter, Protocol, Request, TimeoutConfig8from httpcore import (9 AsyncioBackend,10 BaseReader,11 BaseWriter,12 Protocol,13 Request,14 TimeoutConfig,15)161718class MockHTTP2Backend(AsyncioBackend):19 def __init__(self, app):
96 unmodified lines