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
This commit is contained in:
Alexandre Teixeira
2026-06-11 18:01:14 +01:00
committed by GitHub
parent 3e65326c3f
commit a79c0bd369
29 changed files with 7 additions and 6 deletions
@@ -0,0 +1,18 @@
from tests.helpers.cli_loader import load_script
def test_entry_or_fail_rejects_non_object_entries():
cli = load_script("odysseus-preset")
try:
cli._entry_or_fail({"broken": "raw prompt"}, "broken")
except SystemExit as exc:
assert exc.code == 1
else:
raise AssertionError("expected invalid preset entry to exit")
def test_entry_or_fail_returns_valid_entry():
cli = load_script("odysseus-preset")
assert cli._entry_or_fail({"ok": {"name": "ok"}}, "ok") == {"name": "ok"}