File size: 748 Bytes
2edb151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
676f5d4
 
2edb151
 
 
676f5d4
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from __future__ import annotations

from pathlib import Path

ROOT = Path(__file__).resolve().parents[1]
SKILL = ROOT / "skills" / "keys-receipt-scanner" / "SKILL.md"


def test_skill_frontmatter() -> None:
    text = SKILL.read_text(encoding="utf-8")
    assert text.startswith("---\n")
    parts = text.split("---", 2)
    assert len(parts) >= 3
    fm = parts[1]
    assert "name: keys-receipt-scanner" in fm
    assert "Lamp camera" in fm or "scan" in fm.lower()
    body = parts[2]
    assert "skills/keys-receipt-scanner" in body
    assert "scripts/scan.py" in body
    assert "/camera/snapshot" in body
    assert "6 GB" in body
    assert "Gemma 4 12B" in body
    assert "RECEIPT_STUDIO_URL" in body
    assert "RECEIPT_GPU_HOST" in body