mvp-ai/skill-base / github.com /0marm0 /coord-harness /tests /test_mlx_runner_preflight.py
mvp-ai's picture
download
raw
697 Bytes
from __future__ import annotations
from pathlib import Path
import pytest
from coordharness.coord.runners import mlx_runner
def test_direct_runner_hardware_preflight_precedes_database_mutation(
monkeypatch, tmp_path: Path
) -> None:
db = tmp_path / "coord.db"
monkeypatch.setattr(mlx_runner.sys, "platform", "linux")
monkeypatch.setattr(mlx_runner.platform, "machine", lambda: "x86_64")
runner = mlx_runner.MLXRunner(
"operator/local-model",
"MODEL-1",
db_path=db,
actor="local",
session_id="local:preflight",
)
with pytest.raises(RuntimeError, match="Apple silicon"):
runner.run("hello")
assert not db.exists()

Xet Storage Details

Size:
697 Bytes
·
Xet hash:
193ed72de6434feee233d9985328047c54ce944ed65cd237913ef5c295acdb3b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.