hermes-agent/tests/skills/test_live_dashboard_skill.py
teknium1 524c38a98a test: purge low-value tests, lane py16 (624 removed)
Change-detectors, tautologies, source-reading tests, redundant duplicates,
mock-echo tests and dead/unrunnable tests. Per-test rationale in the lane
ledger (category + reason for every removal).
2026-09-23 03:15:26 -07:00

23 lines
899 B
Python

"""Tests for the live-dashboard optional skill."""
from pathlib import Path
SKILL_PATH = (
Path(__file__).resolve().parents[2]
/ "optional-skills"
/ "productivity"
/ "live-dashboard"
/ "SKILL.md"
)
def test_frontmatter_blueprint_is_a_valid_installed_blueprint():
"""The install-time suggestion rides the skills-pipeline blueprint block, not a
hard-wired catalog entry (an optional skill may not be installed)."""
from tools.blueprints import blueprint_to_job_spec, parse_blueprint
spec = parse_blueprint(SKILL_PATH.read_text(encoding="utf-8"))
assert spec is not None and spec.skill_name == "live-dashboard"
job = blueprint_to_job_spec(spec)
assert job["skills"] == ["live-dashboard"]
assert len(job["schedule"].split()) == 5, f"invalid cron expr: {job['schedule']}"
assert "[SILENT]" in job["prompt"] and "~/.hermes" not in job["prompt"]