fix: quote kernels repair package spec

This commit is contained in:
Rohithmatham12
2026-06-08 21:57:54 -04:00
committed by RaresKeY
parent dd2d375c7b
commit 9f47c5ff87
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
from pathlib import Path
ROOT = Path(__file__).resolve().parent.parent
DIAGNOSIS_JS = ROOT / "static" / "js" / "cookbook-diagnosis.js"
def test_repair_kernels_pip_spec_is_shell_quoted():
source = DIAGNOSIS_JS.read_text(encoding="utf-8")
assert '"kernels<0.15"' in source
assert " --break-system-packages kernels<0.15" not in source