@@ -146,7 +146,7 @@ def test_chained_rewrite_response(a_server_port_and_token: Tuple[int, str]) -> N
146146
147147
148148def 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
199199def 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
214214def 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
236236def 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
270270def 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
336336def 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" )
@@ -359,7 +359,7 @@ async def test_eventstream(a_server_port_and_token: Tuple[int, str]) -> None:
359359 stream_data = []
360360
361361 def streaming_cb (data ):
362- nonlocal times_called , last_cb_time , stream_read_intervals
362+ nonlocal times_called , last_cb_time
363363 time_taken = time .perf_counter () - last_cb_time
364364 last_cb_time = time .perf_counter ()
365365 stream_read_intervals .append (time_taken )
@@ -379,7 +379,7 @@ def streaming_cb(data):
379379
380380
381381async 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
467467async 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
501501def 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