File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
library-tests/frameworks/aiohttp Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -292,10 +292,11 @@ module HttpServerHttpResponseTest implements TestSig {
292292 exists ( DedicatedResponseTest d | d .isDedicatedFile ( file ) )
293293 ) and
294294 (
295- exists ( Http:: Server:: HttpResponse response |
296- location = response .getLocation ( ) and
297- element = response .toString ( ) and
298- value = prettyNodeForInlineTest ( response .getBody ( ) ) and
295+ exists ( Http:: Server:: HttpResponse response , DataFlow:: Node body |
296+ body = response .getBody ( ) and
297+ location = body .getLocation ( ) and
298+ element = body .toString ( ) and
299+ value = prettyNodeForInlineTest ( body ) and
299300 tag = "responseBody"
300301 )
301302 or
Original file line number Diff line number Diff line change 11failures
22testFailures
3- | response_test.py:82:12:82:31 | ControlFlowNode for Attribute() | Unexpected result: responseBody=b"bar" |
4- | response_test.py:82:12:82:31 | ControlFlowNode for Attribute() | Unexpected result: responseBody=b"baz" |
5- | response_test.py:82:12:82:31 | ControlFlowNode for Attribute() | Unexpected result: responseBody=b"foo" |
Original file line number Diff line number Diff line change @@ -82,9 +82,9 @@ async def streaming_response(request): # $ requestHandler
8282 resp = web .StreamResponse () # $ HttpResponse mimetype=application/octet-stream
8383 await resp .prepare (request )
8484
85- await resp .write (b"foo" ) # $ MISSING: responseBody=b"foo"
86- await resp .write (data = b"bar" ) # $ MISSING: responseBody=b"bar"
87- await resp .write_eof (b"baz" ) # $ MISSING: responseBody=b"bar "
85+ await resp .write (b"foo" ) # $ responseBody=b"foo"
86+ await resp .write (data = b"bar" ) # $ responseBody=b"bar"
87+ await resp .write_eof (b"baz" ) # $ responseBody=b"baz "
8888
8989 return resp
9090
You can’t perform that action at this time.
0 commit comments