mirror of
https://github.com/nonebot/nonebot2.git
synced 2026-09-17 06:43:48 +00:00
✨ Feature: 添加 httpx2 驱动器支持 (#4194)
This commit is contained in:
@@ -225,6 +225,7 @@ async def test_cross_context(app: App, driver: Driver):
|
||||
"driver",
|
||||
[
|
||||
pytest.param("nonebot.drivers.httpx:Driver", id="httpx"),
|
||||
pytest.param("nonebot.drivers.httpx2:Driver", id="httpx2"),
|
||||
pytest.param("nonebot.drivers.aiohttp:Driver", id="aiohttp"),
|
||||
],
|
||||
indirect=True,
|
||||
@@ -392,6 +393,7 @@ async def test_http_client(driver: Driver, server_url: URL):
|
||||
"driver",
|
||||
[
|
||||
pytest.param("nonebot.drivers.httpx:Driver", id="httpx"),
|
||||
pytest.param("nonebot.drivers.httpx2:Driver", id="httpx2"),
|
||||
pytest.param("nonebot.drivers.aiohttp:Driver", id="aiohttp"),
|
||||
],
|
||||
indirect=True,
|
||||
@@ -733,6 +735,7 @@ def test_timeout_unset_vs_none():
|
||||
"driver",
|
||||
[
|
||||
pytest.param("nonebot.drivers.httpx:Driver", id="httpx"),
|
||||
pytest.param("nonebot.drivers.httpx2:Driver", id="httpx2"),
|
||||
pytest.param("nonebot.drivers.aiohttp:Driver", id="aiohttp"),
|
||||
],
|
||||
indirect=True,
|
||||
|
||||
Reference in New Issue
Block a user