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/contract admin tests
Ruben Lütke208c1476e9a9
diff --git a/tests/contract/test_admin_client_protocol.py b/tests/contract/test_admin_client_protocol.pyindex ad81d37b64..2901a8eb50 100644--- a/tests/contract/test_admin_client_protocol.py+++ b/tests/contract/test_admin_client_protocol.py@@ -1,12 +1,12 @@-"""Contract-Tests fuer die AdminClient-Schnittstelle.+"""Contract tests for the AdminClient interface.-Parallel zum Muster aus ``test_harness_protocol.py``: wir pruefen, dass-die AdminClient-Klasse die gewohnten Methoden hat (``execute`` ist-async, DestructiveRequiresApproval existiert, Events werden publiziert).+Parallel to the pattern in ``test_harness_protocol.py``: we check that+the AdminClient class has the expected methods (``execute`` is async,+DestructiveRequiresApproval exists, events get published).-Das hier ist *kein* runtime_checkable Protocol, weil ``AdminClient``-strikter ist als ein freies Protocol — aber die Form ist so stabil,-dass Regressions-Tests sinnvoll sind.+This is *not* a runtime_checkable Protocol, because ``AdminClient`` is+stricter than a free-form Protocol — but the shape is stable enough+that regression tests make sense."""from __future__ import annotations@@ -37,7 +37,7 @@ def test_admin_client_constructor_accepts_bus_and_token():params = sig.parametersassert "bus" in paramsassert "cancel_token" in params- # Pipe-Client-Injection fuer Tests muss moeglich sein.+ # Pipe-client injection for tests must be possible.assert "pipe_client" in params or "pipe_name" in params@@ -54,8 +54,8 @@ def test_destructive_exception_carries_op_metadata():def test_admin_hmac_env_and_key_constants_stable():- """Wenn diese Konstanten geaendert werden, muessen Wizard + Helper + ADR- mitgezogen werden — deshalb ist das ein Contract.+ """If these constants change, the wizard + helper + ADR must be+ updated along with them — that's why this is a contract."""assert ADMIN_HMAC_KEY == "jarvis_admin_hmac"assert ADMIN_HMAC_ENV == "JARVIS_ADMIN_HMAC"@@ -63,14 +63,14 @@ def test_admin_hmac_env_and_key_constants_stable():def test_admin_secret_configured_callable():assert callable(admin_secret_configured)- # Idempotent: Aufruf darf nicht crashen.+ # Idempotent: calling it must not crash._ = admin_secret_configured()@pytest.mark.asyncioasync def test_admin_client_returns_adminresponse_on_no_secret(monkeypatch):- """Ohne hinterlegtes Secret: ``execute`` liefert einen AdminResponse- mit ``error_code=no_secret`` zurueck, keine Exception."""+ """Without a stored secret: ``execute`` returns an AdminResponse+ with ``error_code=no_secret``, not an exception."""from jarvis.admin import client as client_moddef _no_secret(*_args, **_kwargs):diff --git a/tests/contract/test_admin_operation_schema.py b/tests/contract/test_admin_operation_schema.pyindex a83f2fabe7..7b9b44b631 100644--- a/tests/contract/test_admin_operation_schema.py+++ b/tests/contract/test_admin_operation_schema.py@@ -1,7 +1,7 @@-"""Contract-Tests fuer das AdminOperation-Pydantic-Schema.+"""Contract tests for the AdminOperation Pydantic schema.-Das Schema ist die einzige Eintrittstuer zum elevateten Helper —-wenn hier ein Test bricht, ist die IPC-Pipeline kompromittiert.+The schema is the only entry door into the elevated helper —+if a test breaks here, the IPC pipeline is compromised."""from __future__ import annotations@@ -94,8 +94,8 @@ def test_extra_fields_rejected():def test_destructive_subclasses_destructive_flag():- """Sanity: alle DESTRUCTIVE_OPS-Subklassen haben einen existierenden- Op-Type, damit kein Tippfehler die Prompt-Pflicht umgeht.+ """Sanity: every DESTRUCTIVE_OPS subclass has an existing op type,+ so a typo can't bypass the prompt requirement."""for op_type in DESTRUCTIVE_OPS:assert op_type in ADMIN_OPERATION_TYPES@@ -120,7 +120,7 @@ def test_uninstall_winget_round_trip():def test_write_protected_path_size_limit():- # 10 MB Obergrenze fuer content_b64+ # 10 MB upper bound for content_b64huge = "A" * (10_485_761)with pytest.raises(ValidationError):_ADAPTER.validate_python({