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.

chore(i18n): translate committed German to English in test_python_script_harness/test_rest_api/test_router_permanent_vision

Ruben Lütke034ddde995d0
diff --git a/jarvis/ui/web/provider_spec.py b/jarvis/ui/web/provider_spec.py
index 493a625363..aa550f1999 100644
--- a/jarvis/ui/web/provider_spec.py
+++ b/jarvis/ui/web/provider_spec.py
@@ -1,10 +1,10 @@
-"""Deklarative Beschreibung aller Brain/TTS/STT-Provider für die Desktop-App.
+"""Declarative description of all Brain/TTS/STT providers for the desktop app.
-Single-Source-of-Truth für die UI: welche Provider gibt es, welches Auth-Verfahren
-brauchen sie, welcher Credential-Manager-Slot speichert ihren Key, welche Login-CLI
-muss gespawnt werden? Ganz bewusst KEINE Modellnamen — Modelle wechseln zu oft,
-und der Default kommt aus jarvis.toml. Die UI rendert pro Provider ein generisches
-Widget anhand des auth_mode.
+Single source of truth for the UI: which providers exist, what auth method
+do they need, which credential-manager slot stores their key, which login
+CLI needs to be spawned? Deliberately NO model names — models change too
+often, and the default comes from jarvis.toml. The UI renders a generic
+widget per provider based on auth_mode.
"""
from __future__ import annotations
@@ -304,7 +304,7 @@ PROVIDERS: tuple[ProviderSpec, ...] = (
def get_spec(provider_id: str) -> ProviderSpec | None:
- """Lookup eines Specs anhand der ID. None wenn unbekannt."""
+ """Look up a spec by ID. None if unknown."""
for spec in PROVIDERS:
if spec.id == provider_id:
return spec
@@ -312,5 +312,5 @@ def get_spec(provider_id: str) -> ProviderSpec | None:
def all_secret_keys() -> set[str]:
- """Set aller Secret-Keys, die von den deklarierten Provider-Specs referenziert werden."""
+ """Set of all secret keys referenced by the declared provider specs."""
return {key for spec in PROVIDERS for key in spec.secret_keys}
diff --git a/tests/integration/test_python_script_harness.py b/tests/integration/test_python_script_harness.py
index 2949494942..e031281e7c 100644
--- a/tests/integration/test_python_script_harness.py
+++ b/tests/integration/test_python_script_harness.py
@@ -1,4 +1,4 @@
-"""Live-Integration-Test für python-script-Harness (echter Python-Subprocess)."""
+"""Live integration test for the python-script harness (a real Python subprocess)."""
from __future__ import annotations
import pytest
diff --git a/tests/integration/test_rest_api.py b/tests/integration/test_rest_api.py
index 732879f8d3..5a9c835c0a 100644
--- a/tests/integration/test_rest_api.py
+++ b/tests/integration/test_rest_api.py
@@ -1,4 +1,4 @@
-"""Integration-Tests für REST-Endpoints des WebServers."""
+"""Integration tests for the WebServer's REST endpoints."""
from __future__ import annotations
import pytest
@@ -13,7 +13,7 @@ from jarvis.ui.web.server import WebServer
@pytest.fixture
def web_server() -> WebServer:
cfg = JarvisConfig()
- cfg.ui.dev_mode = True # kein Static-Mount während Tests
+ cfg.ui.dev_mode = True # no static mount during tests
bus = EventBus()
return WebServer(cfg, bus=bus)
@@ -32,7 +32,7 @@ def test_config_endpoint(web_server: WebServer) -> None:
resp = client.get("/api/config")
assert resp.status_code == 200
body = resp.json()
- # Muss die Top-Level-Sections enthalten.
+ # Must contain the top-level sections.
for section in ("profile", "trigger", "stt", "tts", "brain", "ui"):
assert section in body
diff --git a/tests/integration/test_router_permanent_vision.py b/tests/integration/test_router_permanent_vision.py
index c3a1ec90d6..da519ae1c8 100644
--- a/tests/integration/test_router_permanent_vision.py
+++ b/tests/integration/test_router_permanent_vision.py
@@ -1,15 +1,15 @@
-"""E2E-Integration-Tests fuer Permanent-Vision (Wave-3 B9).
-
-Setup: echte VisionContextProvider + FakeVisionEngine + FakeBrain +
-RouterBrain. Testet den kompletten Vision-Capture → Provider-Cache →
-Router-Inject → BrainDispatcher.dispatch-Pfad.
-
-Welle-4-Migration: der ehemals "kritische" Test
-``test_sub_jarvis_isolated_from_vision`` testete dass der ``SubJarvisManager``
-keine Vision-Images weiterreicht. Sub-Jarvis-Tier wurde durch die OpenClaw-
-Bridge ersetzt (siehe docs/openclaw-bridge.md §11) — der OpenClaw-Worker
-ist ein externer Subprocess ohne Image-Kanal, Vision-Isolation strukturell
-garantiert. Dieser Test wurde entfernt.
+"""E2E integration tests for Permanent Vision (Wave-3 B9).
+
+Setup: a real VisionContextProvider + FakeVisionEngine + FakeBrain +
+RouterBrain. Tests the full vision-capture → provider-cache →
+router-inject → BrainDispatcher.dispatch path.
+
+Wave-4 migration: the formerly "critical" test
+``test_sub_jarvis_isolated_from_vision`` verified that ``SubJarvisManager``
+does not pass along any vision images. The Sub-Jarvis tier was replaced by
+the OpenClaw bridge (see docs/openclaw-bridge.md §11) — the OpenClaw
+worker is an external subprocess with no image channel, so vision
+isolation is structurally guaranteed. This test was removed.
"""
from __future__ import annotations
@@ -34,7 +34,7 @@ pytestmark = pytest.mark.integration
def _make_png_file(size_kb: int = 1) -> tuple[str, bytes]:
- """PNG-Datei mit Fake-Bytes. `size_kb` steuert die Byte-Groesse."""
+ """PNG file with fake bytes. `size_kb` controls the byte size."""
header = b"\x89PNG\r\n\x1a\n"
filler = b"x" * max(0, size_kb * 1024 - len(header))
data = header + filler
@@ -48,10 +48,10 @@ def _make_png_file(size_kb: int = 1) -> tuple[str, bytes]:
class FakeVisionEngine:
- """Emuliert VisionEngine.observe() ohne mss/UIA.
+ """Emulates VisionEngine.observe() without mss/UIA.
- Liefert eine Observation mit einer echten (temp-)PNG-Datei, damit der
- Router-Helper `_read_observation_png_b64` File-I/O machen kann.
+ Returns an observation with a real (temp) PNG file, so the
+ router helper `_read_observation_png_b64` can do file I/O.
"""
def __init__(
@@ -190,16 +190,16 @@ async def test_router_handle_includes_image():
# ======================================================================
-# Test 2: OpenClaw-Worker-Isolation
+# Test 2: OpenClaw worker isolation
#
-# Welle-4-Migration: Der ursprueliche ``test_sub_jarvis_isolated_from_vision``-
-# Test verifizierte dass ``SubJarvisManager.run(task)`` keine Vision-Images
-# weiterreicht. ``SubJarvisManager`` wurde durch die OpenClaw-Bridge ersetzt
-# (siehe docs/openclaw-bridge.md §11). Vision-Isolation ist beim OpenClaw-
-# Worker strukturell garantiert: er ist ein externer Subprocess, der nur
-# einen ``--message <prompt>``-String bekommt — keinen Image-Kanal. Der
-# alte Test wird daher entfernt; ein vergleichbarer Smoke-Test fuer den
-# OpenClaw-Subprocess-Stream lebt in ``tests/integration/test_openclaw_*``.
+# Wave-4 migration: the original ``test_sub_jarvis_isolated_from_vision``
+# test verified that ``SubJarvisManager.run(task)`` does not pass along any
+# vision images. ``SubJarvisManager`` was replaced by the OpenClaw bridge
+# (see docs/openclaw-bridge.md §11). Vision isolation is structurally
+# guaranteed for the OpenClaw worker: it is an external subprocess that
+# only receives a ``--message <prompt>`` string — no image channel. The
+# old test was therefore removed; a comparable smoke test for the
+# OpenClaw subprocess stream lives in ``tests/integration/test_openclaw_*``.
# ======================================================================
@@ -307,13 +307,13 @@ def test_idle_state_pauses_provider_loop():
# ======================================================================
-# Test 5: Provider recovert nach Engine-Fehler
+# Test 5: provider recovers after an engine error
# ======================================================================
@pytest.mark.asyncio
async def test_provider_recovers_from_engine_error():
- """Engine wirft 1x, naechster Tick klappt — Loop stirbt nicht."""
+ """Engine throws once, next tick succeeds — the loop doesn't die."""
from jarvis.vision.context_provider import VisionContextProvider
path, _ = _make_png_file(size_kb=1)
@@ -339,11 +339,11 @@ async def test_provider_recovers_from_engine_error():
@pytest.mark.asyncio
async def test_image_block_size_under_budget():
- """Captured Image bleibt unter 500-KB-Budget.
+ """Captured image stays under the 500 KB budget.
- Mit einem 300-KB-PNG als Input: Der Provider-Pfad encodet es als
- base64 und reicht es durch — assertet dass die Rohdaten unter Budget
- bleiben (Base64-Overhead ~33% wird separat gemessen).
+ With a 300 KB PNG as input: the provider path base64-encodes it and
+ passes it through — asserts that the raw data stays under budget
+ (the ~33% base64 overhead is measured separately).
"""
from jarvis.brain.router import _read_observation_png_b64
from jarvis.core.protocols import Observation
@@ -363,7 +363,7 @@ async def test_image_block_size_under_budget():
)
b64 = await _read_observation_png_b64(obs)
raw_bytes = len(base64.b64decode(b64))
- assert raw_bytes <= 500 * 1024, f"Image ueber Budget: {raw_bytes} bytes"
+ assert raw_bytes <= 500 * 1024, f"Image over budget: {raw_bytes} bytes"
assert raw_bytes == len(data)
finally:
os.unlink(path)