@@ -284,6 +284,7 @@ def test_server_proxy_port_non_service_rewrite_response(
284
284
s = r .read ().decode ("ascii" )
285
285
assert s .startswith ("GET /foo?token=" )
286
286
287
+
287
288
def test_server_proxy_command_callable (
288
289
a_server_port_and_token : Tuple [int , str ]
289
290
) -> None :
@@ -336,7 +337,9 @@ def test_server_proxy_mappath_callable(
336
337
assert "X-Proxycontextpath: /python-http-callable-mappath\n " in s
337
338
338
339
339
- @pytest .mark .parametrize ("name" , ["python-http-environment" , "python-http-callable-environment" ])
340
+ @pytest .mark .parametrize (
341
+ "name" , ["python-http-environment" , "python-http-callable-environment" ]
342
+ )
340
343
def test_server_proxy_environment (
341
344
name : str , a_server_port_and_token : Tuple [int , str ]
342
345
) -> None :
@@ -349,8 +352,12 @@ def test_server_proxy_environment(
349
352
assert f"X-Proxycontextpath: /{ name } \n " in s
350
353
351
354
352
- @pytest .mark .parametrize ("name" , ["python-http-request-headers" , "python-http-callable-request-headers" ])
353
- def test_server_proxy_request_headers (name , a_server_port_and_token : Tuple [int , str ]) -> None :
355
+ @pytest .mark .parametrize (
356
+ "name" , ["python-http-request-headers" , "python-http-callable-request-headers" ]
357
+ )
358
+ def test_server_proxy_request_headers (
359
+ name , a_server_port_and_token : Tuple [int , str ]
360
+ ) -> None :
354
361
PORT , TOKEN = a_server_port_and_token
355
362
r = request_get (PORT , f"/{ name } /" , TOKEN , host = "127.0.0.1" )
356
363
assert r .code == 200
0 commit comments