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
chore(i18n): translate committed German to English in test_tasks_api/test_telephony_media_stream/test_tier1_speed
Ruben Lütke4118e5cf924e
diff --git a/tests/integration/test_tasks_api.py b/tests/integration/test_tasks_api.pyindex 57b95591aa..f68dcb35d5 100644--- a/tests/integration/test_tasks_api.py+++ b/tests/integration/test_tasks_api.py@@ -1,4 +1,4 @@-"""Integration-Tests fuer die Task-Queue-REST-API (Phase 5).+"""Integration tests for the task-queue REST API (Phase 5).Pattern: FastAPI ``TestClient`` + in-memory TaskStore (via ``tmp_path``).POST → GET → POST-cancel → GET-state-cancelled.@@ -30,7 +30,7 @@ async def wired_server(tmp_path: Path):store = TaskStore(tmp_path / "tasks.db")await store.init()- runner = TaskRunner(store=store, bus=bus) # kein TTS/HM — laeuft nie+ runner = TaskRunner(store=store, bus=bus) # no TTS/HM — never runsscheduler = TaskScheduler(store=store, bus=bus, runner=runner)server.app.state.task_store = store@@ -147,7 +147,7 @@ def test_list_with_state_filter(wired_server) -> None:def test_post_rejects_invalid_spec(wired_server) -> None:with TestClient(wired_server.app) as client:- # delay_seconds <= 0 ist von Pydantic geblockt (gt=0)+ # delay_seconds <= 0 is blocked by Pydantic (gt=0)resp = client.post("/api/tasks", json={"title": "bad","trigger": {"type": "after_delay", "delay_seconds": 0.0},@@ -161,7 +161,7 @@ def test_service_unavailable_when_store_missing(tmp_path: Path) -> None:cfg.ui.dev_mode = Truebus = EventBus()server = WebServer(cfg, bus=bus)- # Bewusst kein app.state.task_store setzen+ # Deliberately not setting app.state.task_storewith TestClient(server.app) as client:resp = client.get("/api/tasks")assert resp.status_code == 503diff --git a/tests/integration/test_telephony_media_stream.py b/tests/integration/test_telephony_media_stream.pyindex 60a98b555a..96627ae49f 100644--- a/tests/integration/test_telephony_media_stream.py+++ b/tests/integration/test_telephony_media_stream.py@@ -55,8 +55,8 @@ def app() -> FastAPI:call_sid=call_sid,stream_sid=stream_sid,send=send,- stt=FakeSTT(["Wie spät ist es?"]),- brain=FakeBrain("Es ist genau vierzehn Uhr dreißig."),+ stt=FakeSTT(["Wie spät ist es?"]), # i18n-allow (simulated German STT input under test)+ brain=FakeBrain("Es ist genau vierzehn Uhr dreißig."), # i18n-allow (simulated German voice output under test)# Short greeting/answers keep the synchronous TestClient WS from# backpressuring: ~40 ms of audio is ~2 frames, well within buffers.tts=FakeTTS(ms_per_char=1),diff --git a/tests/integration/test_tier1_speed.py b/tests/integration/test_tier1_speed.pyindex 85bc6187d6..3771e57a83 100644--- a/tests/integration/test_tier1_speed.py+++ b/tests/integration/test_tier1_speed.py@@ -1,9 +1,9 @@-"""Tier-1-Latenz-Test: Live-Brain mit neuen Settings.+"""Tier-1 latency test: live brain with new settings.-Misst:-- Brain-Latenz mit max_retries=0 (sollte bei 429 sofort fallbacken)-- Multi-Tool-Call-Latenz-- RateLimitTracker-Verhalten bei simuliertem 429+Measures:+- Brain latency with max_retries=0 (should fall back immediately on 429)+- Multi-tool-call latency+- RateLimitTracker behavior under a simulated 429"""from __future__ import annotations@@ -18,13 +18,14 @@ def _api_key_available() -> bool:def _oauth_available() -> bool:- # Claude OAuth Max-Plan via claude-api Provider; aktuell ueber denselben- # Env-Marker wie _api_key_available, bis spezifischer OAuth-Token-Check noetig wird.+ # Claude OAuth Max plan via the claude-api provider; currently uses the+ # same env marker as _api_key_available, until a more specific OAuth+ # token check is needed.return _api_key_available()@pytest.mark.voice_latency[email protected](not _api_key_available(), reason="kein Brain-API-Key")[email protected](not _api_key_available(), reason="no Brain API key")@pytest.mark.asyncioasync def test_latency_simple_answer():from jarvis.brain.factory import build_default_brain@@ -38,7 +39,7 @@ async def test_latency_simple_answer():@pytest.mark.voice_latency[email protected](not _api_key_available(), reason="kein Brain-API-Key")[email protected](not _api_key_available(), reason="no Brain API key")@pytest.mark.asyncioasync def test_rate_limit_tracker_skips_bad_provider():from jarvis.brain.factory import build_default_brain@@ -51,29 +52,29 @@ async def test_rate_limit_tracker_skips_bad_provider():r = await asyncio.wait_for(brain.generate("Sag 'Hi'."), timeout=30)dt = time.perf_counter() - t0print(f"\nMit haiku rate-limited: {dt:.2f}s → {r[:80]}")- # Sollte auf Opus (deep_model) fallbacken, immer noch sub-15s+ # Should fall back to Opus (deep_model), still sub-15sassert dt < 25.0@pytest.mark.voice_latency[email protected](not _oauth_available(), reason="kein Claude OAuth")[email protected](not _oauth_available(), reason="no Claude OAuth")@pytest.mark.asyncioasync def test_multitool_latency():- """Latenz-Test: Multi-Part-Request muss innerhalb der Deadline beantwortet werden.+ """Latency test: a multi-part request must be answered within the deadline.- (open_app wurde in älteren Builds als Tool-Assertion-Anker genutzt; das Tool- wurde entfernt — dieser Test misst jetzt reine Antwort-Latenz.)+ (open_app was used as the tool-assertion anchor in older builds; that+ tool was removed — this test now measures pure response latency.)"""from jarvis.brain.factory import build_default_brainbrain = build_default_brain()t0 = time.perf_counter()r = await asyncio.wait_for(- brain.generate("Öffne bitte 3 Windows Terminal-Fenster (wt)."),+ brain.generate("Öffne bitte 3 Windows Terminal-Fenster (wt)."), # i18n-allow (simulated German user utterance)timeout=30,)dt = time.perf_counter() - t0print(f"\nMulti-Tool-Latenz Tier-1: {dt:.2f}s")print(f"Response: {r[:150]}")- assert r, "Brain muss eine Antwort liefern"+ assert r, "Brain must produce a response"assert dt < 25.0, f"Brain zu langsam: {dt}s"