CoolFace
Modelpublic

dougvk/Unlimited-OCR-RDNA4

sourceHugging Facemitupdated 2mo agoView on Hugging Face
0likes
test_bootstrap.py18 linesDownload Raw Back to tests
1from pathlib import Path2 3ROOT = Path(__file__).resolve().parents[1]4 5 6def test_bootstrap_requires_exact_rocm_version() -> None:7    script = (ROOT / "scripts/bootstrap-rocm.sh").read_text(encoding="utf-8")8    assert '[[ $HOST_ROCM != "$ROCM_RELEASE" ]]' in script9    assert "[[ $HOST_ROCM != 7.2.1* ]]" not in script10 11 12def test_bootstrap_uses_hash_lock_and_local_wheel() -> None:13    script = (ROOT / "scripts/bootstrap-rocm.sh").read_text(encoding="utf-8")14    assert "--require-hashes --only-binary=:all:" in script15    assert "pip wheel --no-build-isolation --no-deps" in script16    assert "pip install --force-reinstall --no-deps" in script17    assert "pip install --upgrade" not in script18