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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
test: final cleanup of residual stale tests + mark live/timing benchmarks
Ruben Lütkef849e7a1a657
diff --git a/tests/contract/test_event_serializer.py b/tests/contract/test_event_serializer.pyindex 26e3b82a20..b3417413fa 100644--- a/tests/contract/test_event_serializer.py+++ b/tests/contract/test_event_serializer.py@@ -33,10 +33,20 @@ def _all_event_classes() -> list[type[Event]]:EVENT_CLASSES = _all_event_classes()+# Some Event subclasses validate their fields in __post_init__ and cannot be+# instantiated with bare defaults. Map class name → minimal valid kwargs so+# the parametrized test can still cover them without weakening the guard.+_REQUIRED_KWARGS: dict[str, dict] = {+ # LatencySpan.__post_init__ rejects phase="" — supply a real phase value.+ "LatencySpan": {"phase": "stt_finalize"},+}++@pytest.mark.parametrize("event_cls", EVENT_CLASSES, ids=[c.__name__ for c in EVENT_CLASSES])def test_event_serializes_to_json(event_cls: type[Event]) -> None:"""Instanziert Event mit Defaults und serialisiert zu JSON."""- event = event_cls()+ kwargs = _REQUIRED_KWARGS.get(event_cls.__name__, {})+ event = event_cls(**kwargs)envelope = event_to_ws_envelope(event)# JSON-roundtrip muss klappendiff --git a/tests/integration/awareness/test_a1_e2e.py b/tests/integration/awareness/test_a1_e2e.pyindex 0b75c66a8c..33b1cca792 100644--- a/tests/integration/awareness/test_a1_e2e.py+++ b/tests/integration/awareness/test_a1_e2e.py@@ -112,6 +112,7 @@ async def test_window_focus_watcher_stop_under_2s() -> None:assert elapsed < 2.0, f"stop() took {elapsed:.2f}s, exceeds 2s budget"@pytest.mark.asyncioasync def test_idle_detector_real_threshold_2s() -> None:"""IdleDetector mit threshold_s=2 — wartet 3.5s ohne Mouse/KB-Sim.diff --git a/tests/integration/test_phase1a_smoke.py b/tests/integration/test_phase1a_smoke.pyindex be08832b57..05f3905e27 100644--- a/tests/integration/test_phase1a_smoke.py+++ b/tests/integration/test_phase1a_smoke.py@@ -43,6 +43,7 @@ def test_config():pytest.skip(f"JarvisConfig() kann nicht instanziiert werden: {exc!r}")@pytest.mark.asyncioasync def test_webserver_starts_and_stops(test_config):WebServer = _try_import_webserver()diff --git a/tests/integration/test_phase1c_e2e.py b/tests/integration/test_phase1c_e2e.pyindex 4d6d0731fb..8b4e81d4ca 100644--- a/tests/integration/test_phase1c_e2e.py+++ b/tests/integration/test_phase1c_e2e.py@@ -60,18 +60,24 @@ def test_trigger_matcher_hotkey_deep_work(builtin_root: Path, bus: EventBus) ->assert skill.frontmatter.name == "deep-work-mode"-def test_memory_save_voice_trigger_captures_content(+def test_memory_save_skill_is_disabled_and_does_not_trigger(builtin_root: Path, bus: EventBus) -> None:+ """Regression guard: memory-save is deprecated (state=disabled, triggers=[]).++ The skill was hard-disabled in B5 (2026-05-13) because long-term-memory+ writes now flow through the wiki pipeline (Awareness -> SessionRollupWorker+ -> WikiCurator). The TriggerMatcher must NOT match any voice phrase for it.+ If this test fails, the skill was accidentally re-enabled.+ """reg = SkillRegistry(builtin_root, bus)reg.reload_sync()matcher = TriggerMatcher(reg)skill = matcher.match_voice("merk dir: python ist meine lieblings-sprache", lang="de")- assert skill is not None- assert skill.frontmatter is not None- assert skill.frontmatter.name == "memory-save"+ # Disabled skill with empty triggers must never fire.+ assert skill is None@pytest.mark.asynciodiff --git a/tests/integration/test_suppress_response_no_fallback.py b/tests/integration/test_suppress_response_no_fallback.pyindex 8eda5657bc..87af3e66e6 100644--- a/tests/integration/test_suppress_response_no_fallback.py+++ b/tests/integration/test_suppress_response_no_fallback.py@@ -97,6 +97,14 @@ async def test_suppress_response_does_not_trigger_fallback():("claude-subscription", "opus-model"),]+ # Bypass the signalless-turn gate (added 2026-06-27) that removes+ # spawn_worker from tool-less/non-action utterances. The gate is correct+ # production behaviour — but this test is NOT about turn routing; it only+ # verifies that suppress_response does not cascade into a fallback. We+ # disable the gate here so spawn_worker stays visible to the FakeBrain and+ # we can observe the suppress_response path end-to-end.+ manager._hide_action_tools_on_signalless_turn = lambda tools, user_text: tools # type: ignore[method-assign]+# Utterance enthaelt KEIN Verb aus spawn_verbs, sodass die Force-Spawn-# Heuristik nicht greift und der LLM-Pfad wirklich getestet wird.result = await manager.generate("erkläre mir das mal", use_history=False)diff --git a/tests/overlay/test_mascot_mute_integration.py b/tests/overlay/test_mascot_mute_integration.pyindex 4a21c805e6..64bd969431 100644--- a/tests/overlay/test_mascot_mute_integration.py+++ b/tests/overlay/test_mascot_mute_integration.py@@ -82,8 +82,11 @@ async def test_mascot_dblclick_envelope_drives_pipeline_mute() -> None:assert pipeline.is_muted is Trueassert pipeline._activation_allowed() is False- # Player.stop must have been called so a sentence-in-flight goes silent.- assert player.stop_calls == 1+ # player.stop() is intentionally NOT called on mute (input-only mute,+ # 2026-06-29 forensic): stopping playback mid-write wedged the WASAPI+ # device so subsequent wake-mic opens silently failed. Jarvis finishes+ # the current sentence; new _speak() calls are suppressed while muted.+ assert player.stop_calls == 0@pytest.mark.asynciodiff --git a/tests/overlay/test_tool_cursor_wiring.py b/tests/overlay/test_tool_cursor_wiring.pyindex b0b7530b38..d1aaaf7bb0 100644--- a/tests/overlay/test_tool_cursor_wiring.py+++ b/tests/overlay/test_tool_cursor_wiring.py@@ -40,7 +40,9 @@ def test_click_windows_glides_pulses_then_sends(monkeypatch) -> None:glides: list[tuple[int, int]] = []sends: list[tuple[str, bool]] = []monkeypatch.setattr(click_mod, "glide_os_cursor", lambda x, y, **k: glides.append((x, y)))- monkeypatch.setattr(click_mod, "_send_click", lambda button, double: sends.append((button, double)))+ # _send_click gained an optional abs_xy kwarg — accept it so the patched+ # lambda does not raise TypeError when _click_windows passes the coord.+ monkeypatch.setattr(click_mod, "_send_click", lambda button, double, abs_xy=None: sends.append((button, double)))rec = _RecordingCursor()set_virtual_cursor(rec)@@ -60,7 +62,7 @@ def test_click_element_reuses_the_same_visual_click(monkeypatch) -> None:glides: list[tuple[int, int]] = []monkeypatch.setattr(click_mod, "glide_os_cursor", lambda x, y, **k: glides.append((x, y)))- monkeypatch.setattr(click_mod, "_send_click", lambda button, double: None)+ monkeypatch.setattr(click_mod, "_send_click", lambda button, double, abs_xy=None: None)rec = _RecordingCursor()set_virtual_cursor(rec)diff --git a/tests/unit/voice/test_self_mod_flow.py b/tests/unit/voice/test_self_mod_flow.pyindex 1825371992..b278df826a 100644--- a/tests/unit/voice/test_self_mod_flow.py+++ b/tests/unit/voice/test_self_mod_flow.py@@ -238,12 +238,15 @@ class TestConfirmFlow:controller: SelfModFlowController,pending_store: PendingMutationStore,) -> None:+ # brain.primary is locked for non-USER actors (ProviderSwitchLockedError).+ # Use stt.provider instead — also has needs_restart=True per overrides.py+ # but is NOT in the provider lock list, so HAUPTJARVIS may change it.pending = _make_pending_via_tool(- pending_store, path="brain.primary", new_value="gemini"+ pending_store, path="stt.provider", new_value="openai-whisper")session = controller.begin(pending)final = controller.receive_answer(session, "ja")- # brain.primary hat needs_restart=True+ # stt.provider hat needs_restart=Trueassert final.state == FlowState.APPLIEDassert final.final_message is not Noneassert "neustarten" in final.final_message