make building results authority-first after V74 evaluation
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s

This commit is contained in:
Jens
2026-08-10 04:44:29 +02:00
parent 98188e0a44
commit 4b0cab3ce5
27 changed files with 13067 additions and 6 deletions
+12
View File
@@ -7,6 +7,8 @@ from scripts.export_experimental_yolo_train_shard import (
validate_experimental_request,
)
from scripts.train_experimental_yolo_candidate import validate_paths
from scripts.train_experimental_building_proposal_filter import validate_inputs
from scripts.compose_experimental_yolo_rehearsal_dataset import validate_sources
def test_export_refuses_non_experimental_output(tmp_path: Path) -> None:
@@ -26,3 +28,13 @@ def test_train_shard_rejects_near_duplicate_edge_cover_windows() -> None:
edge_cover = {"row_off": 513, "col_off": 0, "height": 512, "width": 512}
assert is_canonical_train_window(canonical, 512)
assert not is_canonical_train_window(edge_cover, 512)
def test_proposal_filter_refuses_non_experimental_paths(tmp_path: Path) -> None:
with pytest.raises(ValueError, match="must remain"):
validate_inputs(tmp_path / "summary.json", tmp_path / "output")
def test_rehearsal_composer_refuses_non_experimental_output(tmp_path: Path) -> None:
with pytest.raises(ValueError, match="output must remain"):
validate_sources(tmp_path / "old.json", tmp_path / "new.json", tmp_path / "out")