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 tests/board/test_sync.py + tests/conftest.py
Ruben Lütkec62d9d6008f3
diff --git a/tests/board/test_sync.py b/tests/board/test_sync.pyindex 9380c5b6c6..d5deb256bc 100644--- a/tests/board/test_sync.py+++ b/tests/board/test_sync.py@@ -1,8 +1,9 @@-"""SyncClient-Tests — laufen gegen ASGI-In-Memory-Backend ohne Netzwerk.+"""SyncClient tests — run against an ASGI in-memory backend, no network.-Statt einen echten httpx-Server zu starten, mounten wir die FastAPI-App-des Backends via ``httpx.ASGITransport``. Die Sig-Crypto + Replay-Logik-wird so 1:1 wie im Docker-Compose-Pfad geuebt — nur ohne TCP-Roundtrip.+Instead of starting a real httpx server, we mount the backend's FastAPI+app via ``httpx.ASGITransport``. The sig-crypto + replay logic gets+exercised 1:1 like in the Docker-Compose path — just without the TCP+round-trip."""from __future__ import annotations@@ -23,7 +24,7 @@ from jarvis.core.events import ActionExecutedclass _MemKeyring:- """In-Memory-Stub fuer ``keyring`` mit set_password/get_password."""+ """In-memory stub for ``keyring`` with set_password/get_password."""def __init__(self, initial: dict | None = None) -> None:self._store: dict[tuple[str, str], str] = {}@@ -119,7 +120,7 @@ async def test_first_tick_registers_and_pushes(board, asgi_client) -> None:secrets=keyring,http_client=asgi_client,)- # Privkey-Generierung ist Teil von start(); wir rufen das hier ohne start().+ # Privkey generation is part of start(); we call it here without start().client._privkey_hex, client._pubkey_hex = (# Generate via stub-keyring path__import__("board_backend.crypto", fromlist=["generate_keypair"]).generate_keypair()@@ -130,15 +131,15 @@ async def test_first_tick_registers_and_pushes(board, asgi_client) -> None:assert ok is Trueassert client._registered- # Zweiter Tick: Push only, kein Register-Call mehr.+ # Second tick: push only, no more register call.ok2 = await client.tick()assert ok2 is True@pytest.mark.asyncioasync def test_payload_filters_extra_fields(board, asgi_client) -> None:- """Auch wenn der lokale Aggregator-Export Schadensoutput liefert, filtert- der SyncClient die Whitelist auf Daily-Keys."""+ """Even if the local aggregator export returns malicious output, the+ SyncClient filters the whitelist down to daily keys."""agg, db = boardkeyring = _MemKeyring(initial={("jarvis-board", "admin_token"): "test-admin",@@ -169,7 +170,7 @@ async def test_payload_filters_extra_fields(board, asgi_client) -> None:@pytest.mark.asyncioasync def test_unknown_admin_token_skips_register(board) -> None:- """Ohne admin_token im Keyring: kein Register-Versuch, kein Crash."""+ """Without an admin_token in the keyring: no register attempt, no crash."""agg, db = boardkeyring = _MemKeyring() # leerdiff --git a/tests/conftest.py b/tests/conftest.pyindex 2d88d74294..2d5834d7b6 100644--- a/tests/conftest.py+++ b/tests/conftest.py@@ -1,11 +1,11 @@-"""Gemeinsame Pytest-Fixtures für alle Test-Suites."""+"""Shared pytest fixtures for all test suites."""from __future__ import annotationsimport sysfrom pathlib import Path-# Repo-Root in sys.path aufnehmen, damit Tests Top-Level-Module wie `ui.orb`-# importieren koennen (Pytest setzt sys.path standardmaessig nicht auf den Repo-Root).+# Add the repo root to sys.path so tests can import top-level modules like+# `ui.orb` (pytest doesn't add the repo root to sys.path by default)._REPO_ROOT = Path(__file__).resolve().parent.parentif str(_REPO_ROOT) not in sys.path:sys.path.insert(0, str(_REPO_ROOT))@@ -18,7 +18,7 @@ from jarvis.core.bus import EventBus, reset_default_bus@pytest.fixture(autouse=True)def _reset_bus():- """Reset des globalen Default-Bus vor und nach jedem Test."""+ """Reset the global default bus before and after each test."""reset_default_bus()yieldreset_default_bus()