mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-27 07:05:23 -04:00
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:
committed by
GitHub
parent
3e65326c3f
commit
a79c0bd369
@@ -0,0 +1,14 @@
|
||||
from tests.helpers.cli_loader import load_script
|
||||
from tests.helpers.db_stubs import make_core_db_stub
|
||||
|
||||
|
||||
def test_mcp_json_helpers_reject_wrong_shapes(monkeypatch):
|
||||
make_core_db_stub(monkeypatch, models=["McpServer"])
|
||||
cli = load_script("odysseus-mcp")
|
||||
|
||||
assert cli._json_list('["a"]') == ["a"]
|
||||
assert cli._json_list('{"not":"list"}') == []
|
||||
assert cli._json_list("{bad") == []
|
||||
assert cli._json_dict('{"A":"B"}') == {"A": "B"}
|
||||
assert cli._json_dict('["bad"]') == {}
|
||||
assert cli._json_dict("{bad") == {}
|
||||
Reference in New Issue
Block a user