Skip to content

Make test requests execute WSGI middleware as expected#988

Closed
jstasiak wants to merge 1 commit intopallets:masterfrom
smarkets:test-client-and-middleware
Closed

Make test requests execute WSGI middleware as expected#988
jstasiak wants to merge 1 commit intopallets:masterfrom
smarkets:test-client-and-middleware

Conversation

@jstasiak
Copy link
Contributor

The comment in the test explains what I believe to be an unexpected
behavior that this patch attemps to correct. I'm not sure if this is the
best place to place the iterator-exhausting code, I'll be happy to move
it around.

The comment in the test explains what I believe to be an unexpected
behavior that this patch attemps to correct. I'm not sure if this is the
best place to place the iterator-exhausting code, I'll be happy to move
it around.
@davidism
Copy link
Member

You can pass buffered=True to open (get, post, etc.) and it will ensure each response body is read. But I think you're right that buffered=False only makes sense for the final response.

@davidism davidism added this to the 0.15 milestone Nov 25, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants