修改多个问题,优化代码结构
This commit is contained in:
@@ -110,7 +110,7 @@ async def test_api_client_logs_one_line_request_summary_in_debug_mode(caplog: py
|
||||
fake_client = _FakeAsyncClient()
|
||||
client._client = fake_client
|
||||
|
||||
with caplog.at_level(logging.DEBUG, logger=logger_name):
|
||||
with caplog.at_level(logging.INFO, logger=logger_name):
|
||||
await client.request("GET", "/ping")
|
||||
|
||||
assert "ApiClient request: method=GET endpoint=/ping elapsed=" in caplog.text
|
||||
assert "🔎 ApiClient request: method=GET endpoint=/ping elapsed=" in caplog.text
|
||||
|
||||
Reference in New Issue
Block a user