Fix test_core_suite.py quant tutorials Node.js subtest to skip gracefully if node is absent
This commit is contained in:
1 parent
70fa5ee8c2
commit
b273fb9f51
1 file changed
+7
-1
@@ -1131,6 +1131,7 @@ def test_ipld_quant_and_mcp_server() -> None:
|
|||||||
assert "hs-sigil-seal" in surf_txt, f"Missing hs-sigil-seal in {surf_p}"
|
assert "hs-sigil-seal" in surf_txt, f"Missing hs-sigil-seal in {surf_p}"
|
||||||
assert "hs-sigil-colophon" in surf_txt, f"Missing hs-sigil-colophon in {surf_p}"
|
assert "hs-sigil-colophon" in surf_txt, f"Missing hs-sigil-colophon in {surf_p}"
|
||||||
|
|
||||||
|
if shutil.which("node"):
|
||||||
node_rain_test = subprocess.run(
|
node_rain_test = subprocess.run(
|
||||||
[
|
[
|
||||||
"node",
|
"node",
|
||||||
@@ -1148,7 +1149,9 @@ def test_ipld_quant_and_mcp_server() -> None:
|
|||||||
text=True,
|
text=True,
|
||||||
check=False,
|
check=False,
|
||||||
)
|
)
|
||||||
assert node_rain_test.returncode == 0, f"Node CodeRain check failed ({node_rain_test.returncode}): {node_rain_test.stderr}"
|
assert node_rain_test.returncode == 0, f"Node Code-Rain check failed ({node_rain_test.returncode}): {node_rain_test.stderr}"
|
||||||
|
else:
|
||||||
|
print("[notice] 'node' executable not found in PATH; skipping Node.js code-rain subtest.")
|
||||||
|
|
||||||
# Verify PLAN-AUTOMATED-PER-COMMIT-REPO-ROOT-README-SYNCHRONIZATION-FOR-GITEA
|
# Verify PLAN-AUTOMATED-PER-COMMIT-REPO-ROOT-README-SYNCHRONIZATION-FOR-GITEA
|
||||||
# and PLAN-README-AND-GIT-COMMIT-MESSAGE-VERSION-PARITY-FIX
|
# and PLAN-README-AND-GIT-COMMIT-MESSAGE-VERSION-PARITY-FIX
|
||||||
@@ -1249,6 +1252,7 @@ def test_ipld_quant_and_mcp_server() -> None:
|
|||||||
assert js_sig_1["js_ui_sha256"] != js_sig_2["js_ui_sha256"], "Mutating JS DOM control must change js_ui_sha256 fingerprint"
|
assert js_sig_1["js_ui_sha256"] != js_sig_2["js_ui_sha256"], "Mutating JS DOM control must change js_ui_sha256 fingerprint"
|
||||||
assert js_sig_1["has_lens_select_highlight"] is True and js_sig_1["speech_text_count"] == 25
|
assert js_sig_1["has_lens_select_highlight"] is True and js_sig_1["speech_text_count"] == 25
|
||||||
|
|
||||||
|
if shutil.which("node"):
|
||||||
node_quant_tut_test = subprocess.run(
|
node_quant_tut_test = subprocess.run(
|
||||||
[
|
[
|
||||||
"node",
|
"node",
|
||||||
@@ -1272,6 +1276,8 @@ def test_ipld_quant_and_mcp_server() -> None:
|
|||||||
check=False,
|
check=False,
|
||||||
)
|
)
|
||||||
assert node_quant_tut_test.returncode == 0, f"Node QuantTutorials check failed ({node_quant_tut_test.returncode}): {node_quant_tut_test.stderr}"
|
assert node_quant_tut_test.returncode == 0, f"Node QuantTutorials check failed ({node_quant_tut_test.returncode}): {node_quant_tut_test.stderr}"
|
||||||
|
else:
|
||||||
|
print("[notice] 'node' executable not found in PATH; skipping Node.js quant tutorials subtest.")
|
||||||
|
|
||||||
# Verify Plan #57 (Strategies 1A, 2A, 3A): Zero-Git-Audio deploy-time WAV voice compiler (quant_voice.py) & 0 audio files in Git
|
# Verify Plan #57 (Strategies 1A, 2A, 3A): Zero-Git-Audio deploy-time WAV voice compiler (quant_voice.py) & 0 audio files in Git
|
||||||
from hyperstitionstud_io.publishing.quant_voice import build_quant_tour_voice_assets
|
from hyperstitionstud_io.publishing.quant_voice import build_quant_tour_voice_assets
|
||||||
|
|||||||
Reference in new issue
Block a user