fix: add node portability guard to drag-drop test

This commit is contained in:
Rod Boev authored and nesquena-hermes committed 2026-06-24 18:58:33 +00:00
1 parent 36fee0c6a4
commit 2ef8a5f827
1 file changed
+7 -1
+7 -1
View File
@@ -6,9 +6,15 @@ flag is set. The node-driver extraction pattern runs all logic in Node.js withou
a browser.
"""
import os
import shutil
import subprocess
import tempfile
import pytest
NODE = shutil.which("node")
pytestmark = pytest.mark.skipif(NODE is None, reason="node not on PATH")
UI_JS = os.path.join(os.path.dirname(__file__), '..', 'static', 'ui.js')
@@ -72,7 +78,7 @@ class FakeDataTransfer {
tf.close()
try:
result = subprocess.run(
['node', tf.name],
[NODE, tf.name],
capture_output=True, text=True, timeout=30
)
if result.returncode != 0: