
CodexandClaude Opus 4.7
af8145b8a8
补 fudai_filter_pkg / logging_pkg 单元测试 + 修 monitor 缺 datetime import
新增测试:
- test_fudai_filter_pkg (24)
覆盖 helpers / should_skip / join_decision 三个子模块
含 _is_short_countdown_text / is_watch_task_fudai / check_contain
+ should_skip_fudai_by_config 5 个业务场景断言(高价值通过 / 观看任务跳过 /
低价值跳过 / 黑名单跳过 / 单间模式必参)
- test_logging_pkg (22)
覆盖 _common 全局状态 + handlers 类构造 + cleanup 纯函数边界 + monitor
类构造 + config 全部对外 API(get_logger 缓存 / get_caller_info /
format_exception_info / LogContext / log_function_call 装饰器)
修复 1 个真实回归 bug:
- douyin/logging/douyin_logging_pkg/monitor.py 缺 from datetime import datetime
(原文件用的是 from datetime import datetime, timedelta;拆分时只写了
import 模块导致 datetime.now() 抛 NameError)
修复后 LogRotationMonitor 可正常构造
回归:
- 全套 581 → 627 (+46 用例)
- 全部 627 passed in 22s
- compileall exit 0
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 21:01:15 +08:00
..
2026-05-21 14:09:02 +08:00
2026-05-21 15:02:08 +08:00
2026-05-21 14:45:49 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 21:01:15 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 14:15:14 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 14:45:49 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 21:01:15 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 15:11:54 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 14:56:56 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 14:25:35 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 15:17:56 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 20:54:35 +08:00