test(crypto+db+cli): add master key, crypto, credentials_repo, and CLI tests

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-11 10:51:29 +08:00
parent 07adc98e8c
commit e7f41d6e27
7 changed files with 513 additions and 1 deletions

View File

@@ -130,13 +130,14 @@ class TestFreshSchema:
assert "default_auth_strategy" in cols_plat
cols_cred = _column_names(conn, "credentials")
assert "account_id" in cols_cred
assert "secret_ciphertext" in cols_cred
cur = conn.cursor()
cur.execute(
"SELECT value FROM _schema_meta WHERE key = ?",
("schema_version",),
)
row = cur.fetchone()
assert row is not None and row[0] == "2"
assert row is not None and row[0] == "2.1"
finally:
conn.close()