Files
gaokao-volunteer-system/tests/test_requirements_rules_phase1.py
Hermes Agent 8a61b8fe4a
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
fix(rules): close phase15 verify and legacy checker migration
2026-06-17 09:01:43 +08:00

23 lines
662 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
def test_yaml_type_stubs_are_declared_for_mypy_gate() -> None:
dev = REQUIREMENTS_DEV.read_text(encoding="utf-8")
assert "types-PyYAML" in dev