Skip to content

Commit 045b8a4

Browse files
committed
fix: make the CI run on every supported python version
1 parent 51f3917 commit 045b8a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/legacy/test_api_legacy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,8 @@ def get(self):
375375

376376
resp = client.get("/api")
377377
assert resp.status_code == 302
378-
assert resp.headers["Location"] == "/"
378+
# FIXME: The behavior changed somewhere between Flask 2.0.3 and 2.2.x
379+
assert resp.headers["Location"].endswith("/")
379380

380381
def test_calling_owns_endpoint_before_api_init(self):
381382
api = restx.Api()

0 commit comments

Comments
 (0)