docs(test): 更正 K1 E2E docstring 依赖名为 _http_client(CR-H2 收尾)

This commit is contained in:
Yaojia Wang
2026-07-08 11:29:27 +02:00
parent e08b01ac58
commit dd6d2fce2b

View File

@@ -36,7 +36,8 @@ auth.kimi.com / api.kimi.com 一次都不碰。
坑(见 memory/gotchas
- 后台 work 自建 http 走**模块级** `routers.kimi_oauth._default_http_client()`(非 dep——
须 monkeypatch 它指到同一 scripted fake端点 device-auth call[0] + work poll call[1..]
顺序共享);端点 device-auth 走 `http` dep,再 override `_default_http_client` dep。
顺序共享);端点 device-auth 走 `http` dep(现为 `_http_client` 生成器依赖CR-H2
再 override `_http_client` dep。
- 真 pg 持久化:**不** monkeypatch `SqlCredentialStore`(让真 store 落库override
`get_session_factory`→`e2e_sm`(同测试 engine/loop使后台 work 用真 session 写库。
- monkeypatch `routers.kimi_oauth.asyncio.sleep`→no-op不真等 interval 秒)。