Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions changelog.d/fix-staging-tests-redirect.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enable follow_redirects in staging integration tests to handle FastAPI's trailing-slash 307 redirects.
2 changes: 1 addition & 1 deletion tests/test_staging_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@pytest.fixture(scope="module")
def api():
"""HTTP client for the staging API."""
with httpx.Client(base_url=BASE_URL, timeout=30.0) as client:
with httpx.Client(base_url=BASE_URL, timeout=30.0, follow_redirects=True) as client:
yield client


Expand Down
Loading