Train against merged national roof instances
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user