keys-Auto-Receipts-Studio / tests /test_skill_frontmatter.py
drowzeys's picture
Upload folder using huggingface_hub
676f5d4 verified
Raw
History Blame Contribute Delete
748 Bytes
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