"""Reproduce the elliptic measure certificates from the bundled witnesses.""" from pathlib import Path import subprocess import sys import unittest SCRIPTS = Path(__file__).resolve().parents[1] / "scripts/elliptic_measures" class EllipticMeasureCertificates(unittest.TestCase): def test_numeric_windows(self): for name in ("verify_elliptic.py", "height_windows.py"): with self.subTest(name=name): subprocess.run([sys.executable, str(SCRIPTS/name)], check=True, capture_output=True, text=True) def test_rank_from_direct_integrals(self): subprocess.run([sys.executable, str(SCRIPTS/"direct_rank.py")], check=True, capture_output=True, text=True)