Files
gaokao-volunteer-system/tests/test_requirements_rules_phase1.py
Hermes Agent bf3d9c2c50
Some checks failed
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
docs(frontend): add 2026-06-16 frontend audit, execution board, and local browser validation report
- ACTIVE_EXECUTION_BOARD_2026-06-16_OPTIMIZATION.md: 本轮前端审计/整改执行板
- 2026-06-16-optimization-program.md: 4 大工作流规划
- LOCAL_BROWSER_VALIDATION_2026-06-15.md: 本地浏览器验证报告与 Portal Step 5 历史问题
- test_requirements_rules_phase1.py: 规则 Phase1 配套测试
2026-06-16 20:13:23 +08:00

17 lines
508 B
Python

from __future__ import annotations
from pathlib import Path
REPO_ROOT = Path(__file__).resolve().parents[1]
REQUIREMENTS_ADMIN = REPO_ROOT / "requirements-admin.txt"
REQUIREMENTS_DEV = REPO_ROOT / "requirements-dev.txt"
def test_yaml_runtime_dependency_is_declared_for_rules_truth_phase() -> None:
admin = REQUIREMENTS_ADMIN.read_text(encoding="utf-8")
dev = REQUIREMENTS_DEV.read_text(encoding="utf-8")
combined = admin + "\n" + dev
assert "PyYAML" in combined or "pyyaml" in combined