fischer-agentkit/tests
Chiguyong 7449458710 test: 补充 PEP 562 re-export 契约守护测试 (ce-code-review)
ce-code-review 9 个 reviewer 共识 finding:core/exceptions.py 的 PEP 562
__getattr__ re-export 契约无自动化守护。27 个调用方依赖
`from agentkit.core.exceptions import LLMProviderError`,但现有测试仅
顺带触发 happy path,未验证 is identity / isinstance 跨路径 / AttributeError /
__dir__ / 缓存行为。误删 __getattr__ 仅靠现有测试可能延迟发现。

新增 tests/unit/test_core_exceptions_reexport.py (6 tests) 锁定 5 个不变量:
1. 三条导入路径返回同一类对象 (is identity)
2. 跨路径 isinstance/except 捕获正常
3. 未知属性抛 AttributeError (PEP 562 契约)
4. __dir__() 包含 re-export 名字 (通配导入可发现)
5. __getattr__ 调用后缓存到模块 __dict__

finding 1 of 2 (P2, gated_auto, requires_verification=true)
2026-07-06 23:42:09 +08:00
..
documents feat(documents): add document processing capability (U1-U9) 2026-06-23 15:05:01 +08:00
e2e refactor: remove all emoji from source code (#20) 2026-07-03 02:46:40 +08:00
integration fix(review): apply ce-code-review findings 2026-06-30 12:42:15 +08:00
manual test(u6): add L4 real-LLM smoke test for ReAct tool-use prompt 2026-07-02 22:08:45 +08:00
routes feat(documents): add document processing capability (U1-U9) 2026-06-23 15:05:01 +08:00
tools feat(documents): add document processing capability (U1-U9) 2026-06-23 15:05:01 +08:00
unit test: 补充 PEP 562 re-export 契约守护测试 (ce-code-review) 2026-07-06 23:42:09 +08:00
__init__.py feat: initial fischer-agentkit package with unified agent architecture 2026-06-04 22:24:06 +08:00
conftest.py fix: 私董会数据持久化修复 + emoji 移除计划 2026-07-02 01:07:12 +08:00
test_routing_chain.py feat: accumulated frontend enhancements, docs, and static assets 2026-06-14 16:35:01 +08:00