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_reflections/test_verdict/test_approve_materialises_report
Ruben Lütke92edafaa5756
diff --git a/tests/missions/critic/test_reflections.py b/tests/missions/critic/test_reflections.pyindex aec086d3e9..c5c0c454ce 100644--- a/tests/missions/critic/test_reflections.py+++ b/tests/missions/critic/test_reflections.py@@ -1,4 +1,4 @@-"""Tests fuer ReflectionMemory (append + last_n + render + path-resolution)."""+"""Tests for ReflectionMemory (append + last_n + render + path-resolution)."""from __future__ import annotationsfrom pathlib import Path@@ -75,7 +75,7 @@ def test_last_n_returns_last_n_when_more_present(tmp_path: Path) -> None:mem.append(i, f"summary {i}", [f"e{i}"])last = mem.last_n(3)assert len(last) == 3- # juengste ZULETZT in der Liste (chronologisch aufsteigend)+ # most recent LAST in the list (chronologically ascending)assert [r.iteration for r in last] == [2, 3, 4]@@ -151,7 +151,7 @@ def test_evidence_omitted_when_empty(tmp_path: Path) -> None:mem = ReflectionMemory(tmp_path)mem.append(0, "no evidence here", [])text = mem.path.read_text(encoding="utf-8")- # Evidence-Header NICHT vorhanden wenn Liste leer+ # Evidence header NOT present when the list is emptyassert "**Evidence:**" not in textassert "**Summary:** no evidence here" in text@@ -160,7 +160,7 @@ def test_iso_timestamp_included(tmp_path: Path) -> None:mem = ReflectionMemory(tmp_path)mem.append(0, "x", [])text = mem.path.read_text(encoding="utf-8")- # ISO-Datum sollte 4-stellige Jahreszahl haben+ # ISO date should have a 4-digit yearassert "20" in text # 20XX-Jahrassert "T" in text # ISO-T-Trennerdiff --git a/tests/missions/critic/test_verdict.py b/tests/missions/critic/test_verdict.pyindex d0d1e72b0a..3442778f69 100644--- a/tests/missions/critic/test_verdict.py+++ b/tests/missions/critic/test_verdict.py@@ -1,4 +1,4 @@-"""Tests fuer CriticVerdict-Schema, Aggregations-Helper, Schema-Export."""+"""Tests for the CriticVerdict schema, aggregation helper, schema export."""from __future__ import annotationsimport json@@ -34,7 +34,7 @@ def _make_verdict(security_status: str | None = None,issues: list[CriticIssue] | None = None,) -> CriticVerdict:- """Verdict-Factory fuer kompakte Tests."""+ """Verdict factory for compact tests."""axes = {}for ax in REQUIRED_AXES:status = "pass" if all_axes_pass else "fail"@@ -48,7 +48,7 @@ def _make_verdict(issues=issues or [],correction_instruction="" if verdict == "approve" else "fix bug X",summary="ok" if verdict == "approve" else "needs fix",- summary_de="ok" if verdict == "approve" else "muss korrigiert werden",+ summary_de="ok" if verdict == "approve" else "muss korrigiert werden", # i18n-allow (German value under summary_de field)confidence=confidence,suggested_next_action="accept" if verdict == "approve" else "retry",)@@ -162,13 +162,13 @@ def test_approval_invalid_when_one_axis_fails() -> None:def test_approval_invalid_when_evidence_empty() -> None:- """Empty-Evidence-Approval ist eine Abstention — Kriterium 1 design-reviewer."""+ """An empty-evidence approval is an abstention — Criterion 1 design-reviewer."""v = _make_verdict(all_axes_pass=True, all_evidence_present=False)assert is_approval_valid(v) is Falsedef test_approval_invalid_when_one_axis_evidence_empty() -> None:- """Eine einzige Axis ohne Evidence reicht zum Reject."""+ """A single axis without evidence is enough to reject."""v = _make_verdict(all_axes_pass=True, all_evidence_present=True)bad_axes = dict(v.axes)bad_axes["completeness"] = CriticAxis(status="pass", evidence=[])diff --git a/tests/missions/kontrollierer/test_approve_materialises_report.py b/tests/missions/kontrollierer/test_approve_materialises_report.pyindex a200a18b77..06ec2cc7e9 100644--- a/tests/missions/kontrollierer/test_approve_materialises_report.py+++ b/tests/missions/kontrollierer/test_approve_materialises_report.py@@ -157,11 +157,11 @@ async def test_approve_builds_english_summary_en_for_file_deliverable(approved = _approved_event(orch._manager.store) # type: ignore[attr-defined]assert "landing.html" in approved.summary_enassert "saved" in approved.summary_en- assert "Fertig" not in approved.summary_en and "gespeichert" not in approved.summary_en, (+ assert "Fertig" not in approved.summary_en and "gespeichert" not in approved.summary_en, ( # i18n-allow (asserts no German leaked into the English summary)f"summary_en must be English, got {approved.summary_en!r}")# The German field still speaks German — the two diverge as designed.- assert "Fertig" in approved.summary_de and "Datei" in approved.summary_de+ assert "Fertig" in approved.summary_de and "Datei" in approved.summary_de # i18n-allow (German value under summary_de field)async def test_approve_mirrors_materialised_report_to_user_folder(