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 {
292
292
exists ( DedicatedResponseTest d | d .isDedicatedFile ( file ) )
293
293
) and
294
294
(
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
299
300
tag = "responseBody"
300
301
)
301
302
or
Original file line number Diff line number Diff line change 1
1
failures
2
2
testFailures
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
82
82
resp = web .StreamResponse () # $ HttpResponse mimetype=application/octet-stream
83
83
await resp .prepare (request )
84
84
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 "
88
88
89
89
return resp
90
90
You can’t perform that action at this time.
0 commit comments