Files
hermes-webui/tests/test_agent_context_docs.py
2026-05-19 23:55:58 -07:00

22 lines
782 B
Python

from pathlib import Path
def test_root_does_not_shadow_agents_md_with_hermes_context_file():
repo_root = Path(__file__).resolve().parents[1]
for name in ("HERMES.md", ".hermes.md"):
assert not (repo_root / name).exists(), (
f"{name} at the repository root is auto-loaded by Hermes Agent as "
"project context before AGENTS.md; long human-facing Hermes overview "
"docs belong under docs/."
)
def test_why_hermes_doc_remains_linked_from_readme():
repo_root = Path(__file__).resolve().parents[1]
readme = (repo_root / "README.md").read_text(encoding="utf-8")
assert (repo_root / "docs" / "why-hermes.md").exists()
assert "docs/why-hermes.md" in readme
assert "[HERMES.md](HERMES.md)" not in readme