mirror of
https://github.com/fastapi/fastapi.git
synced 2026-06-01 12:17:39 -04:00
✅ Add httpx2 test dependency to avoid deprecation warning (#15603)
This commit is contained in:
@@ -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",
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user