You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
========================================================= short test summary info ==========================================================
FAILED tests/legacy/test_api_legacy.py::APITest::test_redirect - AssertionError: assert '/' == 'http://localhost/'
Environment
Python version: CPython 3.8.12
Flask version: 2.1.0
Flask-RESTX version: 0.5.1
Other installed Flask extensions: N/A
Werkzeaug: 2.1.0
The text was updated successfully, but these errors were encountered:
Fixespython-restx#426pallets/werkzeug#2352 changed the default value of Response.autocorrect_location_header from True to False in Werkzeug >= 2.1.0.
tests/legacy/test_api_legacy.py::APITest::test_redirect depended upon Response.autocorrect_location_header being True.
Change `test_redirect()` to explicitly set `Response.autocorrect_location_header` to `False`, for backwards compatibility, and change the expected result for the test from an absolute URL to the relative URL.
pallets/werkzeug#2352 changed the default value of
Response.autocorrect_location_header
fromTrue
toFalse
in Werkzeug >= 2.1.0.tests/legacy/test_api_legacy.py::APITest::test_redirect
currently depends uponResponse.autocorrect_location_header
beingTrue
.Repro Steps (if applicable)
Expected Behavior
Tests should pass.
Actual Behavior
tests/legacy/test_api_legacy.py::APITest::test_redirect
fails with:Environment
The text was updated successfully, but these errors were encountered: