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 Feb 3, 2025
1 parent 587cc9c commit 9cbb6a0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/test_proxies.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def test_chained_rewrite_response(a_server_port_and_token: Tuple[int, str]) -> N


def test_cats_and_dogs_rewrite_response(
a_server_port_and_token: Tuple[int, str]
a_server_port_and_token: Tuple[int, str],
) -> None:
PORT, TOKEN = a_server_port_and_token
r = request_get(PORT, "/python-cats-only-rewrite-response/goats", TOKEN)
Expand Down Expand Up @@ -197,7 +197,7 @@ def test_server_proxy_requested_port(a_server_port_and_token: Tuple[int, str]) -


def test_server_proxy_on_requested_port_no_command(
a_server_port_and_token: Tuple[int, str]
a_server_port_and_token: Tuple[int, str],
) -> None:
PORT, TOKEN = a_server_port_and_token
r = request_get(PORT, "/python-proxyto54321-no-command/ghi", TOKEN)
Expand All @@ -212,7 +212,7 @@ def test_server_proxy_on_requested_port_no_command(


def test_server_proxy_port_non_absolute(
a_server_port_and_token: Tuple[int, str]
a_server_port_and_token: Tuple[int, str],
) -> None:
PORT, TOKEN = a_server_port_and_token
r = request_get(PORT, "/proxy/54321/jkl", TOKEN)
Expand All @@ -234,7 +234,7 @@ def test_server_proxy_port_absolute(a_server_port_and_token: Tuple[int, str]) ->


def test_server_proxy_host_non_absolute(
a_server_port_and_token: Tuple[int, str]
a_server_port_and_token: Tuple[int, str],
) -> None:
PORT, TOKEN = a_server_port_and_token
# note: localhost: is stripped but 127.0.0.1: is not
Expand Down Expand Up @@ -268,7 +268,7 @@ def test_server_proxy_host_invalid(


def test_server_proxy_port_non_service_rewrite_response(
a_server_port_and_token: Tuple[int, str]
a_server_port_and_token: Tuple[int, str],
) -> None:
PORT, TOKEN = a_server_port_and_token

Expand Down Expand Up @@ -334,7 +334,7 @@ def test_server_request_headers(a_server_port_and_token: Tuple[int, str]) -> Non


def test_server_content_encoding_header(
a_server_port_and_token: Tuple[int, str]
a_server_port_and_token: Tuple[int, str],
) -> None:
PORT, TOKEN = a_server_port_and_token
r = request_get(PORT, "/python-gzipserver/", TOKEN, host="127.0.0.1")
Expand Down Expand Up @@ -379,7 +379,7 @@ def streaming_cb(data):


async def test_server_proxy_websocket_messages(
a_server_port_and_token: Tuple[int, str]
a_server_port_and_token: Tuple[int, str],
) -> None:
PORT, TOKEN = a_server_port_and_token
url = f"ws://{LOCALHOST}:{PORT}/python-websocket/echosocket?token={TOKEN}"
Expand Down Expand Up @@ -465,7 +465,7 @@ async def test_server_proxy_websocket_subprotocols(


async def test_websocket_no_auth_failure(
a_server_port_and_token: Tuple[int, str]
a_server_port_and_token: Tuple[int, str],
) -> None:
PORT = a_server_port_and_token[0]
# Intentionally do not pass an appropriate token, which should cause a 403
Expand Down Expand Up @@ -499,7 +499,7 @@ def test_bad_server_proxy_url(


def test_callable_environment_formatting(
a_server_port_and_token: Tuple[int, str]
a_server_port_and_token: Tuple[int, str],
) -> None:
PORT, TOKEN = a_server_port_and_token
r = request_get(PORT, "/python-http-callable-env/test", TOKEN)
Expand Down

0 comments on commit 9cbb6a0

Please sign in to comment.