Files
douyi_guaji_main/tests
CodexandClaude Opus 4.7 02e685ba20 refactor(reservation): 拆出锁定期同预约位置/窗口复杂检查(1118→988,-130 行)
handle_lock_period_same_reservation_check:把"锁定期内 + 同一预约 + 是否在目标
位置 + 时间窗口"的 139 行复杂逻辑抽到 helper。返回 True/False/None 让主流程
精确控制后续行为:
- True:直接参与
- False:跳过回退
- None:继续走后续时间窗口检查

attend_window.py 跌破 1000 行(988)。

新增 6 个单元测试覆盖各分支组合,1296 → 1302 用例全过。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 04:39:39 +08:00
..