TorbatYar/backend/services/healthcare/app/tests/test_docs.py
Mortezakoohjani 625275e55b feat(healthcare): add backend service and finalize frontend build
Add the Healthcare platform backend (phases 13.0–13.7) with Alembic migration revision fix, production deploy script, validation reports, shared UI exports, and loyalty list page client directives so Next.js build succeeds.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 11:38:31 +03:30

33 lines
1.2 KiB
Python

"""Documentation validation for Healthcare Phase 13.0."""
from pathlib import Path
ROOT = Path(__file__).resolve().parents[5]
def test_phase_docs_exist():
assert (ROOT / "docs" / "phases" / "Healthcare" / "README.md").exists()
assert (ROOT / "docs" / "phases" / "Healthcare" / "phase-13-0-healthcare-foundation.md").exists()
assert (ROOT / "docs" / "healthcare-roadmap.md").exists()
def test_module_registry_mentions_healthcare():
text = (ROOT / "docs" / "module-registry.md").read_text(encoding="utf-8")
assert "## healthcare" in text.lower() or "healthcare" in text.lower()
assert "healthcare_db" in text or "8010" in text
assert "healthcare." in text
def test_progress_mentions_phase_13():
text = (ROOT / "docs" / "progress.md").read_text(encoding="utf-8")
assert "13" in text or "Healthcare" in text
def test_service_readme_documents_boundaries():
text = (ROOT / "backend" / "services" / "healthcare" / "README.md").read_text(
encoding="utf-8"
)
assert "healthcare_db" in text
assert "8010" in text
assert "doctors" in text.lower()
assert "patients" in text.lower()