Files
timmy-home/tests/docs/test_the_door_genome.py
Alexander Whitestone 0e103dc8b7
Some checks failed
Smoke Test / smoke (pull_request) Failing after 8s
feat: add the-door codebase genome (#673)
2026-04-15 00:09:42 -04:00

36 lines
1.1 KiB
Python

from pathlib import Path
def _content() -> str:
return Path("the-door-GENOME.md").read_text()
def test_the_door_genome_exists() -> None:
assert Path("the-door-GENOME.md").exists()
def test_the_door_genome_has_required_sections() -> None:
content = _content()
assert "# GENOME.md — the-door" in content
assert "## Project Overview" in content
assert "## Architecture" in content
assert "```mermaid" in content
assert "## Entry Points" in content
assert "## Data Flow" in content
assert "## Key Abstractions" in content
assert "## API Surface" in content
assert "## Test Coverage Gaps" in content
assert "## Security Considerations" in content
assert "## Dependencies" in content
assert "## Deployment" in content
assert "## Technical Debt" in content
def test_the_door_genome_captures_repo_specific_findings() -> None:
content = _content()
assert "lastUserMessage" in content
assert "localStorage" in content
assert "crisis-offline.html" in content
assert "hermes-gateway.service" in content
assert "/api/v1/chat/completions" in content