fix(skills): require manage_skills action (#5856)

This commit is contained in:
adabarbulescu
2026-08-04 13:17:45 +03:00
committed by GitHub
parent 9d686180dd
commit 20e7fc0164
2 changed files with 28 additions and 2 deletions
@@ -0,0 +1,24 @@
import json
import pytest
from src.tools.system import do_manage_skills
@pytest.mark.asyncio
@pytest.mark.parametrize(
"payload",
[
{},
{"action": ""},
{"action": " "},
{"name": "demo", "description": "x", "procedure": ["step"]},
],
)
async def test_manage_skills_requires_action(payload):
result = await do_manage_skills(json.dumps(payload), owner="test")
assert result == {
"error": "action is required (list|view|view_ref|add|edit|patch|publish|delete|search)",
"exit_code": 1,
}