From db293f3606a97b3e417de27124858e134005acbd Mon Sep 17 00:00:00 2001 From: Anonymous Authors Date: Fri, 24 Jul 2026 13:24:36 -0500 Subject: Add minimal GAP reproduction package --- tests/test_e2e.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/test_e2e.py (limited to 'tests/test_e2e.py') diff --git a/tests/test_e2e.py b/tests/test_e2e.py new file mode 100644 index 0000000..9da1190 --- /dev/null +++ b/tests/test_e2e.py @@ -0,0 +1,30 @@ +from __future__ import annotations + +import asyncio +import json +from pathlib import Path + +from gap_pipeline.e2e import run_offline_smoke + + +def test_offline_end_to_end_smoke(tmp_path: Path) -> None: + result = asyncio.run(run_offline_smoke(tmp_path / "e2e")) + assert result["mode"] == "offline-smoke" + assert result["surface_families"] == [ + "descriptive_long", + "descriptive_long_confusing", + "descriptive_long_misleading", + "garbled_string", + ] + assert result["kernel_status"] == "accepted" + assert result["verification_rounds"] == 2 + assert result["export_status"] == "complete" + assert result["exported_item_count"] == 1 + record = json.loads(Path(result["release_record"]).read_text()) + assert set(record["variants"]) == { + "descriptive_long", + "descriptive_long_confusing", + "descriptive_long_misleading", + "garbled_string", + "kernel_variant", + } -- cgit v1.2.3