@@ -33,7 +33,7 @@ async def app(scope, receive, send):
3333 "aws.event" : {
3434 "body" : None ,
3535 "headers" : {
36- "Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" , # noqa: E501
36+ "Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" ,
3737 "Accept-Encoding" : "gzip, deflate, lzma, sdch, " "br" ,
3838 "Accept-Language" : "en-US,en;q=0.8" ,
3939 "CloudFront-Forwarded-Proto" : "https" ,
@@ -153,7 +153,7 @@ async def app(scope, receive, send):
153153 "aws.event" : {
154154 "body" : None ,
155155 "headers" : {
156- "Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" , # noqa: E501
156+ "Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" ,
157157 "Accept-Encoding" : "gzip, deflate, lzma, sdch, " "br" ,
158158 "Accept-Language" : "en-US,en;q=0.8" ,
159159 "CloudFront-Forwarded-Proto" : "https" ,
@@ -259,13 +259,17 @@ async def app(scope, receive, send):
259259 "statusCode" : 200 ,
260260 "isBase64Encoded" : False ,
261261 "headers" : {"content-type" : "text/plain; charset=utf-8" },
262- "multiValueHeaders" : {"set-cookie" : ["cookie1=cookie1; Secure" , "cookie2=cookie2; Secure" ]},
262+ "multiValueHeaders" : {
263+ "set-cookie" : ["cookie1=cookie1; Secure" , "cookie2=cookie2; Secure" ]
264+ },
263265 "body" : "Hello, world!" ,
264266 }
265267
266268
267269@pytest .mark .parametrize (
268- "mock_http_elb_singlevalue_event" , [["GET" , None , {"name" : ["me" , "you" ]}]], indirect = True
270+ "mock_http_elb_singlevalue_event" ,
271+ [["GET" , None , {"name" : ["me" , "you" ]}]],
272+ indirect = True ,
269273)
270274def test_elb_singlevalue_http_response (mock_http_elb_singlevalue_event ) -> None :
271275 async def app (scope , receive , send ):
@@ -281,7 +285,7 @@ async def app(scope, receive, send):
281285 "host" : "test.execute-api.us-west-2.amazonaws.com" ,
282286 "x-forwarded-for" : "192.168.100.3, 192.168.100.2, 192.168.100.1" ,
283287 "x-forwarded-port" : "443" ,
284- "x-forwarded-proto" : "https"
288+ "x-forwarded-proto" : "https" ,
285289 },
286290 "httpMethod" : "GET" ,
287291 "path" : "/my/path" ,
@@ -341,7 +345,9 @@ async def app(scope, receive, send):
341345
342346
343347@pytest .mark .parametrize (
344- "mock_http_elb_multivalue_event" , [["GET" , None , {"name" : ["me" , "you" ]}]], indirect = True
348+ "mock_http_elb_multivalue_event" ,
349+ [["GET" , None , {"name" : ["me" , "you" ]}]],
350+ indirect = True ,
345351)
346352def test_elb_multivalue_http_response (mock_http_elb_multivalue_event ) -> None :
347353 async def app (scope , receive , send ):
0 commit comments