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.

test(config): isolate structured drift fixture

Ruben Lütkef0922fc69e66
diff --git a/tests/unit/scripts/test_drift_guard_brain_primary_contract.py b/tests/unit/scripts/test_drift_guard_brain_primary_contract.py
index 4587f07818..7438533564 100644
--- a/tests/unit/scripts/test_drift_guard_brain_primary_contract.py
+++ b/tests/unit/scripts/test_drift_guard_brain_primary_contract.py
@@ -130,11 +130,9 @@ def test_env_derivation_rule_matches_guard_for_all_keys(desired_state: dict) ->
def test_structured_stt_models_never_becomes_one_env_override(
- desired_state: dict,
tmp_path: Path,
) -> None:
"""A sandboxed guard run removes the malformed process override."""
- assert isinstance(desired_state["stt"]["models"], dict)
powershell = shutil.which("powershell") or shutil.which("pwsh")
if powershell is None:
pytest.skip("PowerShell is unavailable")
@@ -148,7 +146,7 @@ def test_structured_stt_models_never_becomes_one_env_override(
sandbox.mkdir()
desired_file = sandbox / "desired.json"
desired_file.write_text(
- json.dumps({"stt": {"models": desired_state["stt"]["models"]}}),
+ json.dumps({"stt": {"models": {"openrouter-stt": "openai/gpt-4o-transcribe"}}}),
encoding="utf-8",
)
toml_file = sandbox / "jarvis.toml"