coulomb-social/tests/test_bubble_capture_guards.py

13 lines
447 B
Python
Raw Normal View History

"""Run synthetic source-capture guards in the same Node runtime as the exporter."""
import subprocess
from pathlib import Path
def test_bubble_capture_guards():
root = Path(__file__).resolve().parents[1]
result = subprocess.run(
['node', '--test', 'scripts/tests/bubble-corpus-utils.test.mjs'],
cwd=root, capture_output=True, text=True, check=False,
)
assert result.returncode == 0, result.stdout + result.stderr