mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-26 01:01:40 +00:00
Merge 66223e5bbf into a5129c72ef
This commit is contained in:
commit
b49d00a8fb
2 changed files with 33 additions and 2 deletions
|
|
@ -241,6 +241,23 @@ class TestSkillViewQualifiedName:
|
|||
assert result["success"] is False
|
||||
assert "not found" in result["error"].lower()
|
||||
|
||||
def test_category_qualified_local_skill_falls_through(self, tmp_path, monkeypatch):
|
||||
from tools.skills_tool import skill_view
|
||||
|
||||
local_skills = tmp_path / "local-skills"
|
||||
skill_dir = local_skills / "productivity" / "ticktick"
|
||||
skill_dir.mkdir(parents=True)
|
||||
(skill_dir / "SKILL.md").write_text(
|
||||
"---\nname: ticktick\ndescription: local categorized\n---\nTickTick body.\n"
|
||||
)
|
||||
monkeypatch.setattr("tools.skills_tool.SKILLS_DIR", local_skills)
|
||||
|
||||
result = json.loads(skill_view("productivity:ticktick"))
|
||||
|
||||
assert result["success"] is True
|
||||
assert result["name"] == "ticktick"
|
||||
assert "TickTick body." in result["content"]
|
||||
|
||||
def test_stale_entry_self_heals(self, tmp_path):
|
||||
from tools.skills_tool import skill_view
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue