Add httpx2 test dependency to avoid deprecation warning (#15603)

This commit is contained in:
Yurii Motov
2026-05-27 12:47:28 +02:00
committed by GitHub
parent 6cbdde2315
commit 59d4a80fcf
6 changed files with 59 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
import importlib
import pytest
from dirty_equals import IsOneOf
from fastapi.testclient import TestClient
from inline_snapshot import snapshot
@@ -68,7 +69,9 @@ def test_header_param_model_invalid(client: TestClient):
"x_tag": [],
"host": "testserver",
"accept": "*/*",
"accept-encoding": "gzip, deflate",
"accept-encoding": IsOneOf(
"gzip, deflate", "gzip, deflate, zstd"
),
"connection": "keep-alive",
"user-agent": "testclient",
},

View File

@@ -1,6 +1,7 @@
import importlib
import pytest
from dirty_equals import IsOneOf
from fastapi.testclient import TestClient
from inline_snapshot import snapshot
@@ -66,7 +67,9 @@ def test_header_param_model_no_underscore(client: TestClient):
"traceparent": "123",
"x_tag": [],
"accept": "*/*",
"accept-encoding": "gzip, deflate",
"accept-encoding": IsOneOf(
"gzip, deflate", "gzip, deflate, zstd"
),
"connection": "keep-alive",
"user-agent": "testclient",
"save-data": "true",
@@ -105,7 +108,9 @@ def test_header_param_model_invalid(client: TestClient):
"x_tag": [],
"host": "testserver",
"accept": "*/*",
"accept-encoding": "gzip, deflate",
"accept-encoding": IsOneOf(
"gzip, deflate", "gzip, deflate, zstd"
),
"connection": "keep-alive",
"user-agent": "testclient",
},