
CodexandClaude Opus 4.7
9f330572cc
test(gui): 加 gui_app.main() 启动冒烟测试
背景:d759921 抽 _open_realtime_viewer_impl 时误删 16 行搜索工具栏定义,
gui_app 启动时报 NameError,但 pytest 1421 passed 没抓住——def main()
里的 NameError 只有真正调用 main() 才触发,单纯 import 不会执行函数体。
新测试通过 patch tk.Misc.mainloop 让 GUI 创建完所有控件后立刻 quit,
覆盖 def main() 内部所有顶层语句,能抓住 NameError / AttributeError /
ImportError 这类启动期失败。
已验证:临时 revert ca6c2e4 后该测试 FAIL(精确指向 L3994 NameError),
恢复 ca6c2e4 后 PASS。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 08:59:30 +08:00
..
2026-05-21 14:09:02 +08:00
2026-05-21 15:02:08 +08:00
2026-05-21 22:21:03 +08:00
2026-05-21 14:45:49 +08:00
2026-05-21 22:15:34 +08:00
2026-05-23 01:30:35 +08:00
2026-05-23 02:43:36 +08:00
2026-05-23 01:47:36 +08:00
2026-05-21 22:03:35 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 14:09:02 +08:00
2026-05-23 02:05:38 +08:00
2026-05-21 14:09:02 +08:00
2026-05-23 02:15:43 +08:00
2026-05-23 02:20:25 +08:00
2026-05-23 02:26:49 +08:00
2026-05-21 22:42:58 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 21:53:47 +08:00
2026-05-21 21:01:15 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 22:38:43 +08:00
2026-05-21 22:07:15 +08:00
2026-05-23 08:59:30 +08:00
2026-05-21 22:00:02 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 14:15:14 +08:00
2026-05-22 22:18:33 +08:00
2026-05-21 21:25:50 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 21:50:02 +08:00
2026-05-23 01:39:24 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 22:24:15 +08:00
2026-05-21 14:09:02 +08:00
2026-05-22 20:16:37 +08:00
2026-05-22 19:08:09 +08:00
2026-05-21 14:45:49 +08:00
2026-05-23 03:29:25 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 21:56:43 +08:00
2026-05-21 21:01:15 +08:00
2026-05-21 14:09:02 +08:00
2026-05-23 02:36:47 +08:00
2026-05-23 01:58:13 +08:00
2026-05-21 21:42:39 +08:00
2026-05-21 22:12:54 +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-22 20:46:23 +08:00
2026-05-21 20:54:35 +08:00
2026-05-23 07:05:23 +08:00
2026-05-23 03:47:58 +08:00
2026-05-22 19:20:29 +08:00
2026-05-21 21:04:14 +08:00
2026-05-21 14:25:35 +08:00
2026-05-21 20:54:35 +08:00
2026-05-22 01:22:56 +08:00
2026-05-21 22:09:35 +08:00
2026-05-22 22:45:51 +08:00
2026-05-23 03:13:46 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 22:28:26 +08:00
2026-05-21 22:17:54 +08:00
2026-05-23 03:23:53 +08:00
2026-05-21 14:09:02 +08:00
2026-05-21 21:37:19 +08:00
2026-05-21 20:54:35 +08:00
2026-05-21 22:45:46 +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-23 01:02:48 +08:00
2026-05-22 19:32:04 +08:00
2026-05-21 22:48:38 +08:00
2026-05-21 20:54:35 +08:00