Files
odysseus/tests/cli/test_skills_cli_rows.py
Alexandre Teixeira a79c0bd369 test: move area_cli tests into cli directory (#3842)
* test: move area_cli tests into cli directory

* test: include research CLI status in cli test move
2026-06-11 17:01:14 +00:00

23 lines
593 B
Python

import sys
import types
from unittest.mock import MagicMock
from tests.helpers.cli_loader import load_script
def _load_cli(monkeypatch):
svc = types.ModuleType("services.memory.skills")
svc.SkillsManager = MagicMock()
monkeypatch.setitem(sys.modules, "services.memory.skills", svc)
return load_script("odysseus-skills")
def test_skill_entries_skips_invalid_rows(monkeypatch):
cli = _load_cli(monkeypatch)
assert cli._skill_entries([
{"name": "deploy", "category": "ops"},
"bad-row",
None,
]) == [{"name": "deploy", "category": "ops"}]