Feature/m1 db consolidation #7

Merged
tliu93 merged 9 commits from feature/m1-db-consolidation into main 2026-06-12 20:33:35 +02:00
Showing only changes of commit a337b06c94 - Show all commits
+2 -2
View File
@@ -277,7 +277,7 @@ def test_migrate_reconciliation_failure_raises(tmp_path: Path, monkeypatch: pyte
_make_legacy_location_db(legacy_path, LOCATION_ROWS) _make_legacy_location_db(legacy_path, LOCATION_ROWS)
legacy_url = f"sqlite:///{legacy_path}" legacy_url = f"sqlite:///{legacy_path}"
def _always_fail(conn, table, pk_cols, source_count): def _always_fail(conn, table, columns, source_count):
# Simulate a scenario where reconciliation finds rows missing # Simulate a scenario where reconciliation finds rows missing
raise RuntimeError( raise RuntimeError(
f"Reconciliation failed for table '{table}': " f"Reconciliation failed for table '{table}': "
@@ -302,7 +302,7 @@ def test_cli_exits_nonzero_on_reconciliation_failure(
legacy_url = f"sqlite:///{legacy_path}" legacy_url = f"sqlite:///{legacy_path}"
# Patch _reconcile to always raise # Patch _reconcile to always raise
def _always_fail(conn, table, pk_cols, source_count): def _always_fail(conn, table, columns, source_count):
raise RuntimeError( raise RuntimeError(
f"Reconciliation failed for table '{table}': 1 row missing." f"Reconciliation failed for table '{table}': 1 row missing."
) )