- 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 配套测试
17 lines
508 B
Python
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
|