fix #77, add ua config

This commit is contained in:
felinae98
2022-05-24 00:08:41 +08:00
parent 1e62b6beca
commit 1254995b3c
4 changed files with 9 additions and 7 deletions
+2 -1
View File
@@ -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(