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
+11
View File
@@ -0,0 +1,11 @@
from tests.helpers.cli_loader import load_script
from tests.helpers.db_stubs import make_core_db_stub
def test_text_len_ignores_non_string_values(monkeypatch):
make_core_db_stub(monkeypatch, models=["Document", "DocumentVersion"])
cli = load_script("odysseus-docs")
assert cli._text_len("hello") == 5
assert cli._text_len(None) == 0
assert cli._text_len({"bad": "row"}) == 0