fix: use SCHEMA_VERSION constant in e2e migration test
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
21d072547f
commit
488b79f4d1
1 changed files with 2 additions and 2 deletions
|
|
@ -260,10 +260,10 @@ class TestSchemaMigration:
|
|||
conn.close()
|
||||
|
||||
# Open via get_system_db -> triggers migration
|
||||
from src.db import get_system_db, get_schema_version
|
||||
from src.db import get_system_db, get_schema_version, SCHEMA_VERSION
|
||||
conn2 = get_system_db()
|
||||
|
||||
assert get_schema_version(conn2) == 3
|
||||
assert get_schema_version(conn2) == SCHEMA_VERSION
|
||||
|
||||
# Old data preserved
|
||||
old = conn2.execute("SELECT name, folder FROM table_registry WHERE id='old_table'").fetchone()
|
||||
|
|
|
|||
Loading…
Reference in a new issue