kings-guard/tests/test_cadence_declaration.py

20 lines
765 B
Python
Raw Normal View History

from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
DRAFT = ROOT / "specs" / "EmissionCadenceDeclaration.md"
def test_emission_cadence_draft_exists_for_taxonomy_handover() -> None:
text = DRAFT.read_text(encoding="utf-8")
assert DRAFT.is_file()
assert "owner: Taxonomy" in text
assert "drafter: kings-guard" in text
assert "qonto-assistant" in text
assert "GH-WP-0002-T04" in text
assert "approval-engine/cadence.yaml" in text
assert "expected rate" in text.lower() or "expected-rate" in text
assert "heartbeat" in text.lower()
assert "reconciliation" in text.lower()
assert "alongside the security genome" in text.lower() or "alongside the genome" in text.lower()
assert "security_genome" in text