Skip to content

fix: Enable follow_redirects in staging integration tests#128

Merged
anth-volk merged 2 commits intomainfrom
fix/fix-deploy-errors
Mar 11, 2026
Merged

fix: Enable follow_redirects in staging integration tests#128
anth-volk merged 2 commits intomainfrom
fix/fix-deploy-errors

Conversation

@anth-volk
Copy link
Contributor

Fixes #127

Summary

  • Add follow_redirects=True to the httpx.Client in the staging test fixture
  • Fixes 307 failures caused by FastAPI's trailing-slash redirect + httpx's default of not following redirects

Test plan

  • Merge and trigger deploy workflow
  • Verify staging integration tests pass

🤖 Generated with Claude Code

anth-volk and others added 2 commits March 11, 2026 19:07
httpx.Client defaults to follow_redirects=False, so the 307 redirects
from FastAPI's trailing-slash normalization caused assertion failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@anth-volk anth-volk marked this pull request as ready for review March 11, 2026 18:30
@anth-volk anth-volk merged commit c3d6795 into main Mar 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Staging integration tests fail with 307 due to httpx not following redirects

1 participant