Expand failed regional building contexts
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-07-29 17:14:17 +02:00
parent 2fd9da9e16
commit 08d406ce7d
4 changed files with 62 additions and 0 deletions
@@ -32,3 +32,19 @@ def test_portfolio_bbox_is_metric_sized() -> None:
bounds = to_metric.transform_bounds(bbox["min_x"], bbox["min_y"], bbox["max_x"], bbox["max_y"])
assert 255 <= bounds[2] - bounds[0] <= 258
assert 255 <= bounds[3] - bounds[1] <= 258
def test_failure_driven_expansion_is_train_only_and_context_complete() -> None:
additions = [aoi for aoi in module.AOIS if aoi.slug.endswith("-v31") or "-v31-bg" in aoi.slug]
assert len(additions) == 18
assert {aoi.split for aoi in additions} == {"train"}
assert {aoi.region for aoi in additions} == {"flanders", "wallonia"}
contexts = {(aoi.region, aoi.context) for aoi in additions}
assert {
("flanders", "industrial"),
("flanders", "ribbon-development"),
("flanders", "coastal-urban"),
("wallonia", "dense-urban"),
("wallonia", "rural-town"),
("wallonia", "regional-architecture"),
} <= contexts