test: keep quickstart preflight independent of host acceleration

This commit is contained in:
Teknium
2026-09-07 03:46:46 -07:00
parent f94307a7f7
commit a46ddf0f32

View File

@@ -57,6 +57,14 @@ def test_quickstart_runs_all_three_legs(client, monkeypatch, tmp_path):
Each leg is asserted by its observable call, in order."""
calls: list[str] = []
# Supply the same supported backend to preflight and the stubbed install;
# host auto-detection may select CUDA without a published Linux archive.
from hermes_cli.config import load_config, save_config
config = load_config()
config.setdefault("local_runtime", {})["backend"] = "cpu"
save_config(config)
# Leg 1: no runtime installed yet; install is the stubbed binaries call.
monkeypatch.setattr(
"hermes_cli.local_runtime.binaries.installed_tags", lambda: [])