"""Actual production UI snapshot encoder plus transaction store with SQL adapter.""" import subprocess import tempfile import unittest from pathlib import Path ROOT=Path(__file__).resolve().parents[2] class EconomyView(unittest.TestCase): def test_atomic_bounded_snapshots_and_authoritative_receipts(self): with tempfile.TemporaryDirectory() as tmp: p=Path(tmp);exe=p/'view' subprocess.run(['c++','-std=c++17','-fsanitize=address,undefined','-fno-sanitize-recover=all','-I'+str(ROOT),str(ROOT/'tests/features/fixtures/economy_view_probe.cpp'),'-lsqlite3','-o',str(exe)],check=True) subprocess.run([str(exe),str(p/'view.db'),str(p/'frames')],check=True)