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(brain): repair obsolete none-auth provider test

Ruben Lütke62fc7e0b0a25
diff --git a/tests/unit/brain/test_provider_test_service.py b/tests/unit/brain/test_provider_test_service.py
index e8313925d2..c807e61a5e 100644
--- a/tests/unit/brain/test_provider_test_service.py
+++ b/tests/unit/brain/test_provider_test_service.py
@@ -70,10 +70,14 @@ def test_brain_probe_bad_key_is_bad_key() -> None:
def test_local_provider_none_auth_is_ok_without_network() -> None:
- # faster-whisper has auth_mode "none" — a successful local build means "ok".
+ # A local STT provider with auth_mode "none" needs no credential and no
+ # network: a successful local build IS the "ok" signal. The former
+ # faster-whisper spec was removed in v1.0.1, so synthesize the spec shape
+ # here rather than resolve a live registry entry (which now returns None).
+ spec = SimpleNamespace(id="local-stt", auth_mode="none", tier="stt")
res = _run(
run_provider_test(
- get_spec("faster-whisper"), _cfg(), present=True,
+ spec, _cfg(), present=True,
make_stt=lambda _cfg, _prov: SimpleNamespace(name="fw"),
)
)