Skip to content

Commit 95e7c08

Browse files
committed
tests: add structure tests
1 parent 5cb7ca4 commit 95e7c08

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

tests/test_required_structure.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from pathlib import Path
2+
3+
ROOT = Path(__file__).resolve().parents[1]
4+
5+
6+
def test_required_files_exist():
7+
required = [
8+
'README.md',
9+
'CONTRIBUTING.md',
10+
'SECURITY.md',
11+
'GOVERNANCE.md',
12+
'VERSIONING.md',
13+
'docs/methodology/continuous-improvement-loop.md',
14+
'docs/loops/feature.md',
15+
'prompts/master-system-prompt.md',
16+
]
17+
missing = [p for p in required if not (ROOT / p).exists()]
18+
assert not missing
19+
20+
21+
def test_markdown_files_have_titles():
22+
for path in ROOT.rglob('*.md'):
23+
assert path.read_text(encoding='utf-8').lstrip().startswith('#'), path

0 commit comments

Comments
 (0)