mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-08-04 18:35:30 +00:00
Some checks are pending
CodeQL / Analyze (actions) (push) Waiting to run
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
ci / docker publish / build (amd64) (push) Waiting to run
ci / docker publish / build (arm64) (push) Waiting to run
ci / docker publish / merge manifest + tag (push) Blocked by required conditions
24 lines
562 B
Python
24 lines
562 B
Python
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,
|
|
}
|