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_safety_blacklist/test_screenshot_tool
Ruben Lütke57fd835ee76b
diff --git a/tests/integration/test_safety_blacklist.py b/tests/integration/test_safety_blacklist.pyindex ff8b50256e..ec71d42d31 100644--- a/tests/integration/test_safety_blacklist.py+++ b/tests/integration/test_safety_blacklist.py@@ -1,4 +1,4 @@-"""Integration-Test: run_shell("format C:") wird blockiert."""+"""Integration test: run_shell("format C:") gets blocked."""from __future__ import annotationsimport pytest@@ -41,7 +41,7 @@ async def test_format_is_blacklisted():assert result.success is Falseassert "blacklist" in (result.error or "").lower() or "blockiert" in (result.error or "").lower()- # ActionDenied-Event wurde publiziert+ # ActionDenied event was publishedassert len(denied_events) == 1assert "blacklist" in denied_events[0].reason.lower()diff --git a/tests/integration/test_screenshot_tool.py b/tests/integration/test_screenshot_tool.pyindex a820f4d8ed..0e9678ccaa 100644--- a/tests/integration/test_screenshot_tool.py+++ b/tests/integration/test_screenshot_tool.py@@ -1,7 +1,7 @@-"""Integration-Tests fuer ScreenSnapshotTool (Phase 5, CL-9).+"""Integration tests for ScreenSnapshotTool (Phase 5, CL-9).-Skippen wenn `mss` nicht installiert ist oder kein Display verfuegbar ist-(Headless-CI). Lokal auf Windows mit GUI muessen sie durchgruenen.+Skip when `mss` isn't installed or no display is available+(headless CI). Locally on Windows with a GUI they must pass green."""from __future__ import annotations@@ -25,7 +25,7 @@ def _have_mss() -> bool:def _has_display() -> bool:- """Heuristik: auf Linux/Mac braucht mss ein Display; Windows hat immer eins."""+ """Heuristic: on Linux/Mac mss needs a display; Windows always has one."""if os.name == "nt":return Truereturn bool(os.environ.get("DISPLAY"))@@ -48,7 +48,7 @@ def _ctx() -> ExecutionContext:def test_tool_contract_compliance():- """Tool muss Protocol-Shape erfuellen: name, description, schema, risk_tier, async execute."""+ """Tool must satisfy the Protocol shape: name, description, schema, risk_tier, async execute."""tool = ScreenSnapshotTool()assert tool.name == "screenshot"assert tool.risk_tier == "monitor"@@ -56,9 +56,9 @@ def test_tool_contract_compliance():assert isinstance(tool.schema, dict)assert tool.schema.get("type") == "object"assert "reason" in tool.schema.get("properties", {})- # schema.required sollte vorhanden sein (hier leer)+ # schema.required should be present (empty here)assert isinstance(tool.schema.get("required", []), list)- # execute ist Coroutine+ # execute is a coroutineimport inspectassert inspect.iscoroutinefunction(tool.execute)@@ -67,22 +67,22 @@ def test_tool_contract_compliance():@needs_capture@pytest.mark.asyncioasync def test_screenshot_returns_valid_jpeg():- """Artifact-Data muss dekodiert mit JPEG-Magic-Bytes starten (SOI-Marker)."""+ """Decoded artifact data must start with the JPEG magic bytes (SOI marker)."""tool = ScreenSnapshotTool()result = await tool.execute({}, _ctx())assert isinstance(result, ToolResult)- assert result.success, f"Tool fehlgeschlagen: {result.error}"+ assert result.success, f"Tool failed: {result.error}"assert len(result.artifacts) == 1artifact = result.artifacts[0]raw = base64.b64decode(artifact["data"])- # JPEG SOI: 0xFF 0xD8, dann meist 0xFF 0xE0 (JFIF) oder 0xFF 0xE1 (Exif)- assert raw[:2] == b"\xff\xd8", "Artifact-Data ist kein gueltiges JPEG"+ # JPEG SOI: 0xFF 0xD8, then usually 0xFF 0xE0 (JFIF) or 0xFF 0xE1 (Exif)+ assert raw[:2] == b"\xff\xd8", "Artifact data is not a valid JPEG"@needs_capture@pytest.mark.asyncioasync def test_screenshot_size_under_500kb():- """Auch bei 4K-Monitor muss der Artifact-Blob <= 500KB sein."""+ """Even with a 4K monitor, the artifact blob must be <= 500KB."""tool = ScreenSnapshotTool()result = await tool.execute({"reason": "size-check"}, _ctx())assert result.success, result.error