@@ -284,6 +284,7 @@ def test_server_proxy_port_non_service_rewrite_response(
284284 s = r .read ().decode ("ascii" )
285285 assert s .startswith ("GET /foo?token=" )
286286
287+
287288def test_server_proxy_command_callable (
288289 a_server_port_and_token : Tuple [int , str ]
289290) -> None :
@@ -336,7 +337,9 @@ def test_server_proxy_mappath_callable(
336337 assert "X-Proxycontextpath: /python-http-callable-mappath\n " in s
337338
338339
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+ )
340343def test_server_proxy_environment (
341344 name : str , a_server_port_and_token : Tuple [int , str ]
342345) -> None :
@@ -349,8 +352,12 @@ def test_server_proxy_environment(
349352 assert f"X-Proxycontextpath: /{ name } \n " in s
350353
351354
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 :
354361 PORT , TOKEN = a_server_port_and_token
355362 r = request_get (PORT , f"/{ name } /" , TOKEN , host = "127.0.0.1" )
356363 assert r .code == 200
0 commit comments