From f84db40a238eeabff04795979348aafa8ef1b211 Mon Sep 17 00:00:00 2001 From: nesquena-hermes Date: Wed, 24 Jun 2026 11:07:54 +0000 Subject: [PATCH] test(#4813): resolve node via shutil.which + skip if absent (CI portability) The hardcoded /home/hermes/.local/bin/node doesn't exist in CI runners. Use shutil.which('node') with a module-level skipif, matching the repo's other node-driven tests. --- tests/test_issue4813_cron_model_bare_name.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_issue4813_cron_model_bare_name.py b/tests/test_issue4813_cron_model_bare_name.py index 8937142d..bc3cbc0a 100644 --- a/tests/test_issue4813_cron_model_bare_name.py +++ b/tests/test_issue4813_cron_model_bare_name.py @@ -9,12 +9,16 @@ prefixed value was saved and the cron model override broke. from __future__ import annotations import json +import shutil import subprocess from pathlib import Path +import pytest + REPO = Path(__file__).resolve().parents[1] PANELS_JS = (REPO / "static" / "panels.js").read_text(encoding="utf-8") -NODE = "/home/hermes/.local/bin/node" +NODE = shutil.which("node") +pytestmark = pytest.mark.skipif(NODE is None, reason="node not available") def _fn_body(name: str) -> str: