Skip to content

Commit 8dccb4e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5629135 commit 8dccb4e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/test_proxies.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def test_chained_rewrite_response(a_server_port_and_token: Tuple[int, str]) -> N
146146

147147

148148
def test_cats_and_dogs_rewrite_response(
149-
a_server_port_and_token: Tuple[int, str]
149+
a_server_port_and_token: Tuple[int, str],
150150
) -> None:
151151
PORT, TOKEN = a_server_port_and_token
152152
r = request_get(PORT, "/python-cats-only-rewrite-response/goats", TOKEN)
@@ -197,7 +197,7 @@ def test_server_proxy_requested_port(a_server_port_and_token: Tuple[int, str]) -
197197

198198

199199
def test_server_proxy_on_requested_port_no_command(
200-
a_server_port_and_token: Tuple[int, str]
200+
a_server_port_and_token: Tuple[int, str],
201201
) -> None:
202202
PORT, TOKEN = a_server_port_and_token
203203
r = request_get(PORT, "/python-proxyto54321-no-command/ghi", TOKEN)
@@ -212,7 +212,7 @@ def test_server_proxy_on_requested_port_no_command(
212212

213213

214214
def test_server_proxy_port_non_absolute(
215-
a_server_port_and_token: Tuple[int, str]
215+
a_server_port_and_token: Tuple[int, str],
216216
) -> None:
217217
PORT, TOKEN = a_server_port_and_token
218218
r = request_get(PORT, "/proxy/54321/jkl", TOKEN)
@@ -234,7 +234,7 @@ def test_server_proxy_port_absolute(a_server_port_and_token: Tuple[int, str]) ->
234234

235235

236236
def test_server_proxy_host_non_absolute(
237-
a_server_port_and_token: Tuple[int, str]
237+
a_server_port_and_token: Tuple[int, str],
238238
) -> None:
239239
PORT, TOKEN = a_server_port_and_token
240240
# note: localhost: is stripped but 127.0.0.1: is not
@@ -268,7 +268,7 @@ def test_server_proxy_host_invalid(
268268

269269

270270
def test_server_proxy_port_non_service_rewrite_response(
271-
a_server_port_and_token: Tuple[int, str]
271+
a_server_port_and_token: Tuple[int, str],
272272
) -> None:
273273
PORT, TOKEN = a_server_port_and_token
274274

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

335335

336336
def test_server_content_encoding_header(
337-
a_server_port_and_token: Tuple[int, str]
337+
a_server_port_and_token: Tuple[int, str],
338338
) -> None:
339339
PORT, TOKEN = a_server_port_and_token
340340
r = request_get(PORT, "/python-gzipserver/", TOKEN, host="127.0.0.1")
@@ -379,7 +379,7 @@ def streaming_cb(data):
379379

380380

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

466466

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

500500

501501
def test_callable_environment_formatting(
502-
a_server_port_and_token: Tuple[int, str]
502+
a_server_port_and_token: Tuple[int, str],
503503
) -> None:
504504
PORT, TOKEN = a_server_port_and_token
505505
r = request_get(PORT, "/python-http-callable-env/test", TOKEN)

0 commit comments

Comments
 (0)