# pytest prepend 导入模式按 basename 注册模块:unit 与 integration 下的 # 同名测试文件(如 test_kb_entity.py,任务契约指定两端同名)会撞模块名。 # 加包标记后模块名唯一化为 tests.unit.,与 tests/__init__.py 一致。