import json
from pathlib import Path
def test_aa014_korr06_negative_fixture_matrix_declares_failures():
fixture = Path(__file__).parent / "fixtures" / "aa014_korr06_negative_regressions.json"
rows = json.loads(fixture.read_text(encoding="utf-8"))
assert {row["package_id"] for row in rows} == {
"PKG-ca29ff2c-7f23-4a67-b6f0-ac373b9faebb",
"PKG-403f4aa7-a5ff-474e-bfb7-7c7fa24e6dd5",
"PKG-eff43bd0-9220-444c-a0af-786f91a1194e",
}
assert all(row["expected_overall"] == "FAIL" for row in rows)
pilot = next(row for row in rows if row["package_id"].startswith("PKG-ca29"))
assert pilot["expected_criteria"] == {
"technical_device_plausible": "FAIL",
"cables_and_connections": "FAIL",
"measurement_method": "FAIL",
"overall": "FAIL",
}