fix: add node portability guard to drag-drop test
This commit is contained in:
1 parent
36fee0c6a4
commit
2ef8a5f827
1 file changed
+7
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user