From f6f6f92e3893d449201005c5199854b6b56b7fac Mon Sep 17 00:00:00 2001 From: maziggy Date: Sat, 30 May 2026 14:18:45 +0200 Subject: [PATCH] test(pytest): silence upstream starlette httpx2 deprecation noise --- backend/tests/pytest.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/tests/pytest.ini b/backend/tests/pytest.ini index a70c01e48..5f8f7d385 100644 --- a/backend/tests/pytest.ini +++ b/backend/tests/pytest.ini @@ -8,6 +8,12 @@ filterwarnings = # Filter warnings from async mocks - coroutines created by mocks that are # intentionally not awaited (expected behavior in unit tests) ignore:coroutine.*was never awaited:RuntimeWarning + # Starlette ≥ 1.1 fires its own StarletteDeprecationWarning at import + # time of starlette.testclient asking us to migrate to ``httpx2``. + # Upstream-internal migration; nothing actionable in Bambuddy and a + # full move to httpx2 is its own change. Match by message text so the + # filter holds regardless of which warning class starlette uses. + ignore:Using .httpx. with .starlette.testclient. is deprecated markers = unit: Unit tests (fast, no external deps) integration: Integration tests (slower, test full API)