Chiusura fase di ristrutturazione e modularizzazione del workflow per favorire sviluppo modulare

This commit is contained in:
2026-08-24 13:32:20 +02:00
parent fa2298653b
commit 6062cb010e
96 changed files with 304 additions and 259 deletions
+2 -6
View File
@@ -3,7 +3,7 @@ import hashlib
import pytest
from tht.jobs.dwh_pipeline import DwhPreprocessPipeline
from tht.jobs.runner import CorruptCheckpointError
FP = "sha256:" + hashlib.sha256(b"test").hexdigest()
@@ -67,12 +67,8 @@ def test_resume_rejects_a_different_stage_selection(tmp_path):
introspect=lambda output: output.write_text("catalog"),
build_lsh=lambda physical, output: None,
)
try:
with pytest.raises(CorruptCheckpointError, match="incompatible"):
pipeline.run(("lsh",), resume_run_id=failed.run_id)
except Exception as error:
assert "incompatible" in str(error)
else:
raise AssertionError("resume with different stages must fail")
def test_resume_rejects_tampered_succeeded_stage_artifact(tmp_path):