This change modifies the criteria for redirection of requests to include the app.testing flag, generally set during testing of a Flask app. This is very useful because the Flask test_client does not follow redirects, so enabling the redirects during testing means that the test requests will fail.
This change modifies the criteria for redirection of requests to include the
app.testing
flag, generally set during testing of a Flask app. This is very useful because the Flasktest_client
does not follow redirects, so enabling the redirects during testing means that the test requests will fail.