Classify national maritime source editions
This commit is contained in:
@@ -28,6 +28,9 @@ class SourcePolicy:
|
||||
|
||||
|
||||
SOURCE_POLICIES: dict[str, SourcePolicy] = {
|
||||
"ngi_adminvector": SourcePolicy("NGI AdminVector bestuurlijke grenzen", "edition"),
|
||||
"rbins_marine_reporting_units": SourcePolicy("RBINS mariene rapportage-eenheden", "edition"),
|
||||
"rbins_msp_2026": SourcePolicy("Belgisch Marien Ruimtelijk Plan 2026-2034", "edition"),
|
||||
"grb": SourcePolicy("GRB gebouwen en context", "rolling_snapshot", 90),
|
||||
"vrbg": SourcePolicy("VRBG wegenregister", "rolling_snapshot", 90),
|
||||
"digitaal_vlaanderen_buildings_addresses_register": SourcePolicy(
|
||||
|
||||
@@ -317,6 +317,17 @@ def test_source_family_report_covers_national_regional_and_maritime(
|
||||
}
|
||||
|
||||
|
||||
def test_national_and_maritime_sources_have_explicit_freshness_policies() -> None:
|
||||
from app.services.source_freshness_service import SOURCE_POLICIES
|
||||
|
||||
for source_name in (
|
||||
"ngi_adminvector",
|
||||
"rbins_marine_reporting_units",
|
||||
"rbins_msp_2026",
|
||||
):
|
||||
assert SOURCE_POLICIES[source_name].refresh_policy == "edition"
|
||||
|
||||
|
||||
def test_cleanup_commands_require_backup_confirmation_and_read_only_mount() -> None:
|
||||
generic = (SCRIPTS / "cleanup_storage_artifacts.py").read_text(encoding="utf-8")
|
||||
demo = (ROOT / "backend/scripts/cleanup_demo_artifacts.py").read_text(encoding="utf-8")
|
||||
|
||||
Reference in New Issue
Block a user