Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/legacy/test_api_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,10 @@ def get(self):

resp = client.get("/api")
assert resp.status_code == 302
assert resp.headers["Location"] == "http://localhost/"
if flask.__version__ >= "2.1.0":
assert resp.headers["Location"] == "/"
else:
assert resp.headers["Location"] == "http://localhost/"

def test_calling_owns_endpoint_before_api_init(self):
api = restx.Api()
Expand Down