Parse only explicit manifest paths
This commit is contained in:
@@ -173,6 +173,30 @@ def test_ordinary_json_export_is_not_treated_as_an_artifact_manifest(tmp_path: P
|
||||
assert expanded == {export.resolve()}
|
||||
|
||||
|
||||
def test_manifest_ids_dates_and_labels_are_not_treated_as_paths(tmp_path: Path) -> None:
|
||||
audit = load_script("audit_data_operations.py")
|
||||
storage = tmp_path / "storage"
|
||||
manifest = storage / "operator-data" / "scope" / "scope.manifest.json"
|
||||
actual = manifest.parent / "scope.geojson"
|
||||
manifest.parent.mkdir(parents=True)
|
||||
actual.write_text("{}", encoding="utf-8")
|
||||
manifest.write_text(
|
||||
json.dumps(
|
||||
{
|
||||
"municipality_ids": ["13025", "11001"],
|
||||
"generated_at": "2026-07-18T00:00:00Z",
|
||||
"label": "Belgium",
|
||||
"output_path": "scope.geojson",
|
||||
}
|
||||
),
|
||||
encoding="utf-8",
|
||||
)
|
||||
|
||||
expanded = audit.expand_manifest_references({manifest.resolve()}, storage)
|
||||
|
||||
assert expanded == {manifest.resolve(), actual.resolve()}
|
||||
|
||||
|
||||
def test_disk_pressure_uses_absolute_headroom_for_large_arrays(
|
||||
tmp_path: Path,
|
||||
monkeypatch: pytest.MonkeyPatch,
|
||||
|
||||
Reference in New Issue
Block a user