Spaces:
Running
Running
File size: 508 Bytes
630d650 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import json
from pathlib import Path
from toxra_core.regulatory_mapper import map_extraction_to_framework
def test_regulatory_mapping_outputs_matrix_and_report():
fixture = Path("tests/fixtures/extraction_sample.json")
payload = json.loads(fixture.read_text(encoding="utf-8"))
df, report, md = map_extraction_to_framework(payload, framework="FDA CTP")
assert not df.empty
assert "clause_id" in df.columns
assert report["framework"] == "FDA CTP"
assert "Status Summary" in md
|