24 lines
897 B
Python
24 lines
897 B
Python
from pathlib import Path
|
|
|
|
|
|
def test_issue_693_verification_doc_exists_with_mainline_backup_evidence() -> None:
|
|
text = Path("docs/issue-693-verification.md").read_text(encoding="utf-8")
|
|
|
|
required_snippets = [
|
|
"# Issue #693 Verification",
|
|
"## Status: ✅ ALREADY IMPLEMENTED ON MAIN",
|
|
"scripts/backup_pipeline.sh",
|
|
"scripts/restore_backup.sh",
|
|
"tests/test_backup_pipeline.py",
|
|
"Nightly backup of ~/.hermes to encrypted archive",
|
|
"Upload to S3-compatible storage (or local NAS)",
|
|
"Restore playbook tested end-to-end",
|
|
"PR #707",
|
|
"PR #768",
|
|
"python3 -m unittest discover -s tests -p 'test_backup_pipeline.py' -v",
|
|
"bash -n scripts/backup_pipeline.sh scripts/restore_backup.sh",
|
|
]
|
|
|
|
missing = [snippet for snippet in required_snippets if snippet not in text]
|
|
assert not missing, missing
|