Skip to content

Conversation

@davidism
Copy link
Member

During the rollout of the 2.0 major version, these were removed because they were always out of sync. Add them back in.

This revealed an incompatibility once Werkzeug 2.1 is released, since it removed as_tuple but Flask's test client still passes it. Given that users have already been seeing a deprecation warning from Werkzeug, I'm adding the deprecation here as well, to be removed in Flask 2.1.

as_tuple would return (environ, response), now a TestResponse instance is always returned. response.request.environ has the same information.

@davidism davidism added this to the 2.0.3 milestone Nov 15, 2021
@davidism davidism merged commit 3720669 into 2.0.x Nov 15, 2021
@davidism davidism deleted the test-min-dev branch November 15, 2021 21:24
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants