Commit Graph
1 Commits
Author SHA1 Message Date
CodexandClaude Opus 4.7 778c021272 tests: 新增 param_usage_tracker 单元测试 (13 用例)
douyin/utils/param_usage_tracker:
  - track_param:写一条 / extra 字段合并 / 多次 append / unrepresentable 值兜底
  - track_call 装饰器:参数记录 / include_args=False / 保留 __name__ /
    异常正常传播 / kwargs 记录
  - read_entries:文件不存在 / 读回写入内容 / limit 限制 / 跳过坏行

用 monkeypatch 把 _get_log_path 重定向到 tmp_path,避免污染 state/。

回归:tests/ 344 passed / 1 skipped。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 15:11:54 +08:00