Files
ferro-ta/tests/integration/test_cross_surface_manifest.py
T
Pratik Bhadane 53566b9d82 feat: expand rust parity, wasm exports, and api conformance
Move several hot Python analysis paths to Rust-backed helpers. This adds Rust implementations for backtest strategy signal generation and the core portfolio loop, options and futures payoff aggregation, Greeks aggregation, ratio calculation, trade extraction, chunked close-only indicator runs, and forward-fill helpers. Wire the Python analysis and data modules to prefer these paths, and add coverage for the new batch fast path.

Expand the WASM package to export WMA, ADX, and MFI from ferro_ta_core, refresh the Node examples, benchmarks, and README, and add a Node-vs-Python conformance test so the browser and node surface stays aligned with the main Python package.

Introduce a generated cross-surface API manifest in docs/, along with scripts to rebuild and verify it from source exports. Enforce manifest freshness in the Python and WASM CI workflows so release candidates catch surface drift before push.
2026-03-24 14:28:51 +05:30

25 lines
716 B
Python

from __future__ import annotations
import json
from pathlib import Path
import sys
ROOT = Path(__file__).resolve().parents[2]
SCRIPTS = ROOT / "scripts"
if str(ROOT / "python") not in sys.path:
sys.path.insert(0, str(ROOT / "python"))
if str(SCRIPTS) not in sys.path:
sys.path.insert(0, str(SCRIPTS))
from build_api_manifest import build_manifest
def test_api_manifest_is_deterministic_and_current() -> None:
manifest_path = ROOT / "docs" / "api_manifest.json"
assert manifest_path.exists(), "docs/api_manifest.json is missing"
expected = build_manifest(ROOT, include_runtime_metadata=False)
actual = json.loads(manifest_path.read_text(encoding="utf-8"))
assert actual == expected