Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 24, 2022
1 parent fab2c62 commit f5df67a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions aiohttp/client_reqrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@

json_re = re.compile(r"^application/(?:[\w.+-]+?\+)?json")


def _gen_default_accept_encoding() -> str:
return "gzip, deflate, br" if HAS_BROTLI else "gzip, deflate"

Expand Down
1 change: 1 addition & 0 deletions tests/test_client_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,7 @@ def test_loose_cookies_types(loop) -> None:

loop.run_until_complete(req.close())


@pytest.mark.parametrize(
"has_brotli,expected",
[
Expand Down
1 change: 1 addition & 0 deletions tests/test_web_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,7 @@ async def handler(request):

await resp.release()


async def test_bad_request_payload(aiohttp_client) -> None:
async def handler(request):
assert request.method == "POST"
Expand Down

0 comments on commit f5df67a

Please sign in to comment.