Redact version from info table snapshot to avoid test failures on version bumps

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alex Garcia 2026-03-17 00:09:28 -07:00
parent 41cecbadc3
commit 380b0bb032
2 changed files with 6 additions and 18 deletions

View file

@ -146,7 +146,11 @@ def test_insert_validates_type(db):
def test_info_table_contents(db, snapshot):
db.execute("create virtual table v using vec0(emb float[4], chunk_size=8)")
assert exec(db, "select key, value from v_info order by key") == snapshot()
assert exec(db, "select key, value from v_info where key not like 'CREATE_VERSION%' order by key") == snapshot()
# Smoke-check that version keys exist without pinning exact values
version_rows = exec(db, "select key from v_info where key like 'CREATE_VERSION%' order by key")
keys = [r["key"] for r in version_rows["rows"]]
assert keys == ["CREATE_VERSION", "CREATE_VERSION_MAJOR", "CREATE_VERSION_MINOR", "CREATE_VERSION_PATCH"]
def test_delete_zeroes_rowid_blob(db):