Skip to content

test: add httpx2 for Starlette TestClient#32

Merged
rlippmann merged 1 commit into
mainfrom
fix-fastapi-warning
Jul 2, 2026
Merged

test: add httpx2 for Starlette TestClient#32
rlippmann merged 1 commit into
mainfrom
fix-fastapi-warning

Conversation

@rlippmann

Copy link
Copy Markdown
Owner

Summary

Adds httpx2 to the development dependencies used by the Python test suite.

Why

Recent Starlette releases emit a deprecation warning when starlette.testclient uses httpx:

Using httpx with starlette.testclient is deprecated; install httpx2 instead.

Adding httpx2 removes the warning without changing test behavior.

Changes

  • Added httpx2
  • Updated the lockfile

Validation

  • ./scripts/validate_python.sh passed
  • 149 passed, 2 skipped
  • The Starlette TestClient deprecation warning is no longer emitted

Scope

This PR does not change example behavior, runtime behavior, or test logic. It only removes validation noise caused by a dependency deprecation warning.

@rlippmann
rlippmann merged commit 000e3ff into main Jul 2, 2026
5 checks passed
@rlippmann
rlippmann deleted the fix-fastapi-warning branch July 2, 2026 02:40
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.

1 participant