pbl_evidence/requirements-dev.txt
2026-09-23 00:03:12 +08:00

14 lines
897 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# pbl_evidence —— 测试前置依赖(发现项 DISC.2:显式声明,不再靠临时注入 PYTHONPATH)
#
# 与 pyproject.toml 的 [project.optional-dependencies].test 等价,单列一份是为了
# 让「不安装本包也能跑离线单测」的场景(CI / 测试机宿主)有一条最短安装命令:
# python3 -m pip install -r requirements-dev.txt
#
# 版本区间与 pyproject test extra 保持一致(>=7.0,<10):
# - 下限 7.0:需要 pytest.mark.skipif 条件式与 monkeypatch raising 参数的稳定语义;
# - 上限 <10:主版本跳变前不自动跟随,避免解析器/插件接口变更打挂既有 9 条用例。
#
# 注意:pytest 是**测试**依赖,绝不写进 [project].dependencies——否则宿主
# `pip install -e modules/pbl_evidence` 会被拖入无关安装,且违反「只声明直接代码依赖」铁律。
pytest>=7.0,<10