Download tests/test_skill_frontmatter.py from drowzeys/keys-Auto-Receipts-Studio: direct link, hf CLI and curl.
- Browser
- Download file 748 Bytes
-
https://huggingface.co/drowzeys/keys-Auto-Receipts-Studio/resolve/main/tests/test_skill_frontmatter.py
- Command line
-
hf download hf://drowzeys/keys-Auto-Receipts-Studio/tests/test_skill_frontmatter.py
-
curl -L -o test_skill_frontmatter.py https://huggingface.co/drowzeys/keys-Auto-Receipts-Studio/resolve/main/tests/test_skill_frontmatter.py
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 | |