feat(sp41): claim-id dedup at SFTP pre-flight (30-day window, configurable)

This commit is contained in:
Nora
2026-07-07 22:02:46 -06:00
parent 13dd240328
commit 0e130579b4
6 changed files with 138 additions and 10 deletions
+2 -2
View File
@@ -102,10 +102,10 @@ def migrated_engine(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
engine = _fresh_engine(tmp_path / "mig0020.db")
db_migrate.run(engine)
# Confirm head is 21 (every migration applied, including SP39's 0021).
# Confirm head is 22 (every migration applied, including SP41's 0022).
with engine.connect() as conn:
v = conn.exec_driver_sql("PRAGMA user_version").scalar() or 0
assert v == 21, f"expected migration head=21, got {v}"
assert v == 22, f"expected migration head=22, got {v}"
yield engine
engine.dispose()