"""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()