Skip to content

Self-hosted AI workspace.

Python

fix(tests): add httpx2 so starlette.testclient stops warning on every run (#3943)

Kenny Van de Maelef212367f0f06
diff --git a/requirements.txt b/requirements.txt
index 2c4072980..b71f9897b 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -43,3 +43,7 @@ qrcode[pil]
croniter
pytest
pytest-asyncio
+# starlette.testclient prefers httpx2 since Starlette 1.2.0 and warns on every
+# TestClient import when only classic httpx is present. Runtime code keeps
+# using `httpx` above; this is test-client only.
+httpx2