Train against merged national roof instances
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-30 00:10:15 +02:00
parent 1f44824f18
commit 15ff6f6433
3 changed files with 87 additions and 0 deletions
@@ -29,3 +29,14 @@ def test_process_detection_requires_exact_marker(monkeypatch) -> None:
monkeypatch.setattr(MODULE.subprocess, "run", lambda *args, **kwargs: Result())
assert MODULE.process_active("geointel", "run_belgium_building_training_loop.py")
assert not MODULE.process_active("geointel", "other_loop.py")
def test_write_state_creates_output_directory_atomically(tmp_path: Path) -> None:
state_path = tmp_path / "new-run" / "supervisor-state.json"
MODULE.write_state(state_path, {"schema_version": 1, "status": "monitoring"})
written = json.loads(state_path.read_text(encoding="utf-8"))
assert written["status"] == "monitoring"
assert written["updated_at"]
assert not state_path.with_suffix(".json.tmp").exists()