diff --git a/changelog.d/fix-staging-tests-redirect.fixed b/changelog.d/fix-staging-tests-redirect.fixed new file mode 100644 index 0000000..5724897 --- /dev/null +++ b/changelog.d/fix-staging-tests-redirect.fixed @@ -0,0 +1 @@ +Enable follow_redirects in staging integration tests to handle FastAPI's trailing-slash 307 redirects. diff --git a/tests/test_staging_api.py b/tests/test_staging_api.py index 5f21d0f..9f13506 100644 --- a/tests/test_staging_api.py +++ b/tests/test_staging_api.py @@ -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