nancy/tests/test_db.py

9 lines
241 B
Python

def test_schema_version_match():
import nancy
from nancy.version import schema_version
cur = nancy._conn.cursor()
(db_schema_ver,) = cur.execute("PRAGMA user_version;").fetchone()
assert schema_version == db_schema_ver