Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

test: catch tests up to stricter app-control status checks, session-token wiring, and the new Spanish in-flight ack

Ruben Lütkee7c64f653da1
diff --git a/tests/unit/plugins/tool/test_app_control_tools.py b/tests/unit/plugins/tool/test_app_control_tools.py
index 50f9bf8c2e..58d17b11ea 100644
--- a/tests/unit/plugins/tool/test_app_control_tools.py
+++ b/tests/unit/plugins/tool/test_app_control_tools.py
@@ -209,6 +209,7 @@ async def test_switch_antigravity_allowed_as_subagent(monkeypatch, no_keys):
class _Status:
connected = True
+ mode = "oauth-personal"
class _FakeGoogleCliAuthService:
def status(self):
@@ -235,6 +236,7 @@ async def test_switch_codex_allowed_as_subagent(monkeypatch, no_keys):
class _Status:
connected = True
+ installed = True
class _FakeCodexAuthService:
def status(self):
diff --git a/tests/unit/plugins/tool/test_spawn_worker_cooldown.py b/tests/unit/plugins/tool/test_spawn_worker_cooldown.py
index dc7fe0510b..2627c934de 100644
--- a/tests/unit/plugins/tool/test_spawn_worker_cooldown.py
+++ b/tests/unit/plugins/tool/test_spawn_worker_cooldown.py
@@ -309,7 +309,7 @@ def test_suppress_acks_are_short_and_unique() -> None:
# German/Spanish marker words below are the data under test.
"de": ("schon", "läuft", "dabei", "dran", "bereits", "arbeit"), # i18n-allow
"en": ("already", "still", "running", "working", "progress"),
- "es": ("marcha", "sigo", "proceso", "está"), # i18n-allow
+ "es": ("marcha", "sigo", "proceso", "está", "ya tiene"), # i18n-allow
}[lang]
for ack in pool:
assert 5 <= len(ack) <= 60, (
diff --git a/tests/unit/ui/test_desktop_backend_start_order.py b/tests/unit/ui/test_desktop_backend_start_order.py
index f0f9365357..5b9c2ab8b1 100644
--- a/tests/unit/ui/test_desktop_backend_start_order.py
+++ b/tests/unit/ui/test_desktop_backend_start_order.py
@@ -160,7 +160,7 @@ def _cfg(tmp_path: Path) -> SimpleNamespace:
memory=SimpleNamespace(data_dir=tmp_path),
latency=SimpleNamespace(log_jsonl=False),
harness=SimpleNamespace(default_risk_tier="safe"),
- ui=SimpleNamespace(admin_api_port=18123),
+ ui=SimpleNamespace(admin_api_port=18123, dev_mode=False, vite_dev_url=None),
)
@@ -269,6 +269,7 @@ def test_desktop_voice_start_does_not_wait_for_brain_ready(monkeypatch, tmp_path
app = DesktopApp.__new__(DesktopApp)
app.cfg = _cfg(tmp_path)
+ app.session_token = "test-session-token"
app._backend_loop = None
app._server = None
app._workflow_store = None