Use full-area fast path for regional history
This commit is contained in:
@@ -232,6 +232,15 @@ def test_full_area_fast_path_requires_matching_area_and_clipped_operator_provena
|
||||
source="manual",
|
||||
source_metadata={"geometry_clipped_to_area": True},
|
||||
)
|
||||
regional_historical = Dataset(
|
||||
id=uuid4(),
|
||||
project_id=project_id,
|
||||
area_id=area_id,
|
||||
name="Regional historical buildings",
|
||||
dataset_type="vector",
|
||||
source="operator_official_import",
|
||||
provenance_metadata={"operator_tool": "provision_regional_historical_landuse.py"},
|
||||
)
|
||||
untrusted = Dataset(
|
||||
id=uuid4(),
|
||||
project_id=project_id,
|
||||
@@ -243,6 +252,7 @@ def test_full_area_fast_path_requires_matching_area_and_clipped_operator_provena
|
||||
|
||||
assert VectorFeatureService.can_use_full_area_fast_path(trusted, area_id) is True
|
||||
assert VectorFeatureService.can_use_full_area_fast_path(explicit, area_id) is True
|
||||
assert VectorFeatureService.can_use_full_area_fast_path(regional_historical, area_id) is True
|
||||
assert VectorFeatureService.can_use_full_area_fast_path(untrusted, area_id) is False
|
||||
assert VectorFeatureService.can_use_full_area_fast_path(trusted, uuid4()) is False
|
||||
assert VectorFeatureService.can_use_full_area_fast_path(trusted, None) is False
|
||||
|
||||
@@ -226,9 +226,11 @@ def test_upload_contract_is_regional_temporal_and_partition_audited(tmp_path: Pa
|
||||
assert data["observed_at"] == "1969-01-01T00:00:00Z"
|
||||
assert source_metadata["member_count"] == 28
|
||||
assert source_metadata["partitioned_source_audit"] is True
|
||||
assert source_metadata["geometry_clipped_to_area"] is True
|
||||
assert source_metadata["identity_stable"] is False
|
||||
assert provenance["partition_count"] == 28
|
||||
assert provenance["raw_source_responses_retained"] is True
|
||||
assert provenance["geometry_clipped_to_area"] is True
|
||||
|
||||
|
||||
def test_regional_historical_operator_is_packaged_and_release_checked() -> None:
|
||||
|
||||
Reference in New Issue
Block a user