docs(test): 更正 K1 E2E docstring 依赖名为 _http_client(CR-H2 收尾)
This commit is contained in:
@@ -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 秒)。
|
||||
|
||||
Reference in New Issue
Block a user