mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-09 18:27:56 +08:00
fix #77, add ua config
This commit is contained in:
+2
-1
@@ -1,6 +1,5 @@
|
||||
import pytest
|
||||
from nonebug import App
|
||||
from nonebug.fixture import nonebug_init
|
||||
|
||||
|
||||
async def test_without_proxy(app: App):
|
||||
@@ -8,6 +7,8 @@ async def test_without_proxy(app: App):
|
||||
|
||||
c = http_client()
|
||||
assert not c._mounts
|
||||
req = c.build_request("GET", "http://example.com")
|
||||
assert "Chrome" in req.headers["User-Agent"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
||||
Reference in New Issue
Block a user