@@ -146,7 +146,7 @@ def test_chained_rewrite_response(a_server_port_and_token: Tuple[int, str]) -> N
146
146
147
147
148
148
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 ],
150
150
) -> None :
151
151
PORT , TOKEN = a_server_port_and_token
152
152
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]) -
197
197
198
198
199
199
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 ],
201
201
) -> None :
202
202
PORT , TOKEN = a_server_port_and_token
203
203
r = request_get (PORT , "/python-proxyto54321-no-command/ghi" , TOKEN )
@@ -212,7 +212,7 @@ def test_server_proxy_on_requested_port_no_command(
212
212
213
213
214
214
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 ],
216
216
) -> None :
217
217
PORT , TOKEN = a_server_port_and_token
218
218
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]) ->
234
234
235
235
236
236
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 ],
238
238
) -> None :
239
239
PORT , TOKEN = a_server_port_and_token
240
240
# note: localhost: is stripped but 127.0.0.1: is not
@@ -268,7 +268,7 @@ def test_server_proxy_host_invalid(
268
268
269
269
270
270
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 ],
272
272
) -> None :
273
273
PORT , TOKEN = a_server_port_and_token
274
274
@@ -334,7 +334,7 @@ def test_server_request_headers(a_server_port_and_token: Tuple[int, str]) -> Non
334
334
335
335
336
336
def test_server_content_encoding_header (
337
- a_server_port_and_token : Tuple [int , str ]
337
+ a_server_port_and_token : Tuple [int , str ],
338
338
) -> None :
339
339
PORT , TOKEN = a_server_port_and_token
340
340
r = request_get (PORT , "/python-gzipserver/" , TOKEN , host = "127.0.0.1" )
@@ -379,7 +379,7 @@ def streaming_cb(data):
379
379
380
380
381
381
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 ],
383
383
) -> None :
384
384
PORT , TOKEN = a_server_port_and_token
385
385
url = f"ws://{ LOCALHOST } :{ PORT } /python-websocket/echosocket?token={ TOKEN } "
@@ -465,7 +465,7 @@ async def test_server_proxy_websocket_subprotocols(
465
465
466
466
467
467
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 ],
469
469
) -> None :
470
470
PORT = a_server_port_and_token [0 ]
471
471
# Intentionally do not pass an appropriate token, which should cause a 403
@@ -499,7 +499,7 @@ def test_bad_server_proxy_url(
499
499
500
500
501
501
def test_callable_environment_formatting (
502
- a_server_port_and_token : Tuple [int , str ]
502
+ a_server_port_and_token : Tuple [int , str ],
503
503
) -> None :
504
504
PORT , TOKEN = a_server_port_and_token
505
505
r = request_get (PORT , "/python-http-callable-env/test" , TOKEN )
0 commit comments