violet(ddl): require every shipped table

This commit is contained in:
Codex
2026-07-13 11:32:14 +02:00
parent cc7ac35169
commit 8787cbcadf
2 changed files with 5 additions and 1 deletions

View File

@@ -47,7 +47,10 @@ def test_real_sql_dir_yields_one_create_per_file():
for _, stmt in iter_statements(SQL_DIR)
if "dolphin_violet." in stmt
}
assert EXPECTED_TABLES <= created, f"missing CREATEs: {EXPECTED_TABLES - created}"
assert EXPECTED_TABLES == created, (
f"DDL inventory mismatch: missing={EXPECTED_TABLES - created}, "
f"unregistered={created - EXPECTED_TABLES}"
)
def test_one_post_per_statement_and_double_apply_idempotent(monkeypatch):