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 tests/board route+scheduler tests

Ruben Lütke643d1dcef9ee
diff --git a/tests/board/test_routes.py b/tests/board/test_routes.py
index 8d0a8bdcf3..b831f90d97 100644
--- a/tests/board/test_routes.py
+++ b/tests/board/test_routes.py
@@ -1,9 +1,9 @@
-"""Route-Tests fuer ``/api/board/personal/*``.
+"""Route tests for ``/api/board/personal/*``.
-Isolierter Setup: wir haengen nur den ``board_router`` in eine frische
-``FastAPI``-Instanz und wiring manuell ``app.state.board_store`` +
-``app.state.board_aggregator``. Das vermeidet die komplexe ``WebServer``-
-Initialisierung (Skill-Registry, Conductor, MCP) im Route-Test.
+Isolated setup: we mount only the ``board_router`` on a fresh
+``FastAPI`` instance and manually wire ``app.state.board_store`` +
+``app.state.board_aggregator``. This avoids the complex ``WebServer``
+initialization (skill registry, conductor, MCP) in the route test.
"""
from __future__ import annotations
@@ -94,7 +94,7 @@ def test_heatmap_fills_every_day(wired_client: TestClient) -> None:
body = resp.json()
assert body["days"] == 30
assert len(body["cells"]) == 30
- # mindestens eine Zelle muss Aktivitaet haben, auch wenn kein Task lief
+ # at least one cell must show activity, even if no task ran
assert any(c["activity_events"] >= 1 for c in body["cells"])
@@ -123,7 +123,7 @@ def test_refresh_reruns_aggregator(wired_client: TestClient) -> None:
def test_503_when_store_missing(tmp_path: Path) -> None:
- """Ohne konfigurierten Store muss der Endpoint sauber 503 liefern."""
+ """Without a configured store, the endpoint must cleanly return 503."""
app = FastAPI()
app.include_router(board_router)
app.state.board_store = None
diff --git a/tests/board/test_routes_phase_b.py b/tests/board/test_routes_phase_b.py
index 4ee1639abd..d8379d1559 100644
--- a/tests/board/test_routes_phase_b.py
+++ b/tests/board/test_routes_phase_b.py
@@ -1,4 +1,4 @@
-"""Route-Tests fuer Phase-B-Endpoints: Achievements + Bio."""
+"""Route tests for Phase-B endpoints: achievements + bio."""
from __future__ import annotations
from collections.abc import AsyncIterator
@@ -19,14 +19,14 @@ from jarvis.ui.web.board_routes import board_router
class _FakeBrain:
async def complete(self, request: BrainRequest) -> AsyncIterator[BrainDelta]:
- yield BrainDelta(content="Auf Daten basiert: 5 Tools genutzt, meistens bash. Kein Muster darueber hinaus.")
+ yield BrainDelta(content="Auf Daten basiert: 5 Tools genutzt, meistens bash. Kein Muster darueber hinaus.") # i18n-allow: simulated German LLM bio output (product persona voice)
yield BrainDelta(finish_reason="stop", usage={"input_tokens": 100, "output_tokens": 50})
@pytest.fixture
def wired_app(tmp_path: Path) -> TestClient:
db = tmp_path / "personal.db"
- # Evaluator mit ein paar Events vorbefuellen.
+ # Pre-fill the evaluator with a few events.
ev = AchievementEvaluator(db)
ev.attach()
for tool in ("bash", "search_web", "write_file", "read_file", "grep_repo"):
@@ -59,7 +59,7 @@ def test_achievements_list_reports_unlocked_count(wired_app: TestClient) -> None
assert resp.status_code == 200
body = resp.json()
assert body["total"] >= 10 # 10 im Katalog
- # tool_dabbler muss unlocked sein (5 tools).
+ # tool_dabbler must be unlocked (5 tools).
unlocked_ids = {i["id"] for i in body["items"] if i["unlocked_at"]}
assert "tool_dabbler" in unlocked_ids
@@ -97,7 +97,7 @@ def test_bio_regenerate_graceful_on_brain_outage(tmp_path: Path) -> None:
yield # pragma: no cover — macht Methode zum AsyncGenerator
db = tmp_path / "personal.db"
- # Leere DB fuer minimalen Setup.
+ # Empty DB for minimal setup.
ev = AchievementEvaluator(db)
ev.attach()
bio_store = BioStore(db)
diff --git a/tests/board/test_scheduler.py b/tests/board/test_scheduler.py
index 13f17a3653..4422c6f434 100644
--- a/tests/board/test_scheduler.py
+++ b/tests/board/test_scheduler.py
@@ -1,4 +1,4 @@
-"""Tests fuer BioScheduler (Phase B)."""
+"""Tests for BioScheduler (Phase B)."""
from __future__ import annotations
import asyncio
@@ -85,7 +85,7 @@ async def test_weekly_date_guard_respected(tmp_path: Path) -> None:
today = "2026-04-24"
await sched._run_and_mark(triggered_by="weekly", today_iso=today)
await sched._run_and_mark(triggered_by="weekly", today_iso=today)
- assert brain.calls == 2 # beide Calls liefen, weil _run_and_mark kein Guard
- # Aber: _maybe_run_weekly wuerde den zweiten Run ueberspringen wegen
- # last_bio_run_date-Check. Verifizieren:
+ assert brain.calls == 2 # both calls ran, because _run_and_mark has no guard
+ # But: _maybe_run_weekly would skip the second run because of the
+ # last_bio_run_date check. Verify:
assert sched._read_meta("last_bio_run_date") == today